Changeset 7258c6a in buchla-68k for libsm/strncmp.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/strncmp.c
r0292fbb r7258c6a 9 9 */ 10 10 11 int strncmp(char *s1, char *s2, int n)11 int16_t strncmp(int8_t *s1, int8_t *s2, int16_t n) 12 12 { 13 13 if (s1 == s2) … … 18 18 return(0); 19 19 20 return((n < 0) ? 0 : (int )(*s1 - *--s2));20 return((n < 0) ? 0 : (int16_t)(*s1 - *--s2)); 21 21 } 22
Note:
See TracChangeset
for help on using the changeset viewer.