Changeset 7258c6a in buchla-68k for libsm/strcmp.c
- Timestamp:
- 07/09/2017 04:45:34 PM (7 years ago)
- Branches:
- master
- Children:
- 8618599
- Parents:
- 0292fbb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libsm/strcmp.c
r0292fbb r7258c6a 8 8 */ 9 9 10 int strcmp(char *s1, char*s2)10 int16_t strcmp(int8_t *s1, int8_t *s2) 11 11 { 12 12 if(s1 == s2) … … 17 17 return(0); 18 18 19 return((int )*s1 - (int)*--s2);19 return((int16_t)*s1 - (int16_t)*--s2); 20 20 } 21
Note:
See TracChangeset
for help on using the changeset viewer.