scc

Simple C99 Compiler
Log | Files | Refs | README | LICENSE

string.h (1267B)


      1 /* See LICENSE file for copyright and license details. */
      2 #ifndef _STRING_H
      3 #define _STRING_H
      4 
      5 #ifndef NULL
      6 #define NULL ((void *) 0)
      7 #endif
      8 
      9 #ifndef _SIZET
     10 typedef unsigned size_t;
     11 #endif
     12 
     13 extern char *strcpy(char *dst, const char *src);
     14 extern char *strncpy(char *dst, const char *src, size_t n);
     15 extern char *strcat(char *dst, const char *src);
     16 extern char *strncat(char *dst, const char *src, size_t n);
     17 extern size_t strxfrm(char *dst, const char *src, size_t n);
     18 extern size_t strlen(const char *s);
     19 extern int strcmp(const char *s1, const char *s2);
     20 extern int strcoll(const char *s1, const char *s2);
     21 extern char *strchr(const char *s, int c);
     22 extern char *strrchr(const char *s, int c);
     23 extern size_t strspn(const char *s, const char *accept);
     24 extern size_t strcspn(const char *s, const char *reject);
     25 extern size_t strpbrk(const char *s, const char *accept);
     26 extern size_t strstr(const char *s, const char *sub);
     27 extern char *strtok(const char *s, const char *delim);
     28 
     29 extern void *memset(void *s, int c, size_t n);
     30 extern void *memcpy(void *dst, const void *src, size_t n);
     31 extern void *memmove(void *dst, const void *src, size_t n);
     32 extern int memcmp(const void *s1, const void *s2, size_t n);
     33 extern void *memchr(const void *s, int c, size_t n);
     34 
     35 #endif