Changeset 618
- Timestamp:
- Jul 16, 2015, 3:29:09 PM (9 years ago)
- Location:
- soft/giet_vm/giet_common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_common/utils.c
r594 r618 602 602 while ( string[i] != 0 ) i++; 603 603 return i; 604 } 605 606 /////////////////////////////////////// 607 unsigned int _strcmp( const char * s1, 608 const char * s2 ) 609 { 610 while (1) 611 { 612 if (*s1 != *s2) return 1; 613 if (*s1 == 0) break; 614 s1++, s2++; 615 } 616 return 0; 604 617 } 605 618 -
soft/giet_vm/giet_common/utils.h
r594 r618 153 153 extern unsigned int _strlen( char* str); 154 154 155 extern unsigned int _strcmp(const char* s1, 156 const char* s2); 157 155 158 extern unsigned int _strncmp(const char* s1, 156 159 const char* s2,
Note: See TracChangeset
for help on using the changeset viewer.