Changeset 607
- Timestamp:
- Jul 13, 2015, 3:10:27 PM (9 years ago)
- Location:
- soft/giet_vm/giet_libs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_libs/string.c
r258 r607 37 37 } 38 38 39 /////////////////////////////////////////////////////////////////////////////////// 40 // int strlen ( const char * str ) 41 /////////////////////////////////////////////////////////////////////////////////// 42 int strlen ( const char * str ) 43 { 44 const char *s = str; 45 46 while (*s) 47 s++; 48 49 return (s - str); 50 } 51 39 52 // Local Variables: 40 53 // tab-width: 4 -
soft/giet_vm/giet_libs/string.h
r258 r607 11 11 char * strcpy ( char * destination, const char * source ); 12 12 int strcmp ( const char * str1, const char * str2 ); 13 int strlen ( const char * str ); 13 14 14 15 #endif
Note: See TracChangeset
for help on using the changeset viewer.