9os

Experimental kernel using plan9 ideas for embedded device
git clone git://git.simple-cc.org/9os
Log | Files | Refs | README | LICENSE

string.h (1497B)


      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 void *memrchr(const void *s, int c, size_t n);
     23 extern char *strchr(const char *s, int c);
     24 extern size_t strcspn(const char *s1, const char *s2);
     25 extern char *strpbrk(const char *s1, const char *s2);
     26 extern char *strrchr(const char *s, int c);
     27 extern size_t strspn(const char *s1, const char *s2);
     28 extern char *strstr(const char *s1, const char *s2);
     29 extern char *strtok(char * restrict s1, const char * restrict s2);
     30 extern void *memset(void *s, int c, size_t n);
     31 extern char *strerror(int errnum);
     32 extern size_t strlen(const char *s);
     33 extern size_t strnlen(const char *s, size_t maxlen);
     34 
     35 #endif