scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

string.h (1390B)


      1 #ifndef _STRING_H
      2 #define _STRING_H
      3 
      4 #include <arch/string.h>
      5 
      6 #ifndef NULL
      7 #define NULL ((void *) 0)
      8 #endif
      9 
     10 extern void *memcpy(void * restrict s1, const void * restrict s2, size_t n);
     11 extern void *memmove(void *s1, const void *s2, size_t n);
     12 extern char *strcpy(char * restrict s1, const char * restrict s2);
     13 extern char *strncpy(char * restrict s1, const char * restrict s2, size_t n);
     14 extern char *strcat(char * restrict s1, const char * restrict s2);
     15 extern char *strncat(char * restrict s1, const char * restrict s2, size_t n);
     16 extern int memcmp(const void *s1, const void *s2, size_t n);
     17 extern int strcmp(const char *s1, const char *s2);
     18 extern int strcoll(const char *s1, const char *s2);
     19 extern int strncmp(const char *s1, const char *s2, size_t n);
     20 extern size_t strxfrm(char * restrict s1, const char * restrict s2, size_t n);
     21 extern void *memchr(const void *s, int c, size_t n);
     22 extern char *strchr(const char *s, int c);
     23 extern size_t strcspn(const char *s1, const char *s2);
     24 extern char *strpbrk(const char *s1, const char *s2);
     25 extern char *strrchr(const char *s, int c);
     26 extern size_t strspn(const char *s1, const char *s2);
     27 extern char *strstr(const char *s1, const char *s2);
     28 extern char *strtok(char * restrict s1, const char * restrict s2);
     29 extern void *memset(void *s, int c, size_t n);
     30 extern char *strerror(int errnum);
     31 extern size_t strlen(const char *s);
     32 
     33 #endif