Changeset 7258c6a in buchla-68k for libsm/strncmp.c


Ignore:
Timestamp:
07/09/2017 04:45:34 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
8618599
Parents:
0292fbb
Message:

Use standard integer types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libsm/strncmp.c

    r0292fbb r7258c6a  
    99*/
    1010
    11 int strncmp(char *s1, char *s2, int n)
     11int16_t strncmp(int8_t *s1, int8_t *s2, int16_t n)
    1212{
    1313        if (s1 == s2)
     
    1818                        return(0);
    1919
    20         return((n < 0) ? 0 : (int)(*s1 - *--s2));
     20        return((n < 0) ? 0 : (int16_t)(*s1 - *--s2));
    2121}
     22
Note: See TracChangeset for help on using the changeset viewer.