Changeset 7258c6a in buchla-68k for libsm/strtok.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/strtok.c

    r0292fbb r7258c6a  
    1111*/
    1212
    13 #define NULL    (char *)0
     13#define NULL    (int8_t *)0
    1414
    15 extern int strspn(char *string, char *charset);
    16 extern char *strpbrk(char *string, char *brkset);
     15extern int16_t strspn(int8_t *string, int8_t *charset);
     16extern int8_t *strpbrk(int8_t *string, int8_t *brkset);
    1717
    18 char *strtok(char *string, char *sepset)
     18int8_t *strtok(int8_t *string, int8_t *sepset)
    1919{
    20         register char *p, *q, *r;
    21         static char *savept;
     20        register int8_t *p, *q, *r;
     21        static int8_t *savept;
    2222
    2323        /* first or subsequent call ? */
Note: See TracChangeset for help on using the changeset viewer.