The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/include/string.h

Version: -  FREEBSD  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-2  -  FREEBSD-11-1  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-4  -  FREEBSD-10-3  -  FREEBSD-10-2  -  FREEBSD-10-1  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-3  -  FREEBSD-9-2  -  FREEBSD-9-1  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-4  -  FREEBSD-8-3  -  FREEBSD-8-2  -  FREEBSD-8-1  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-4  -  FREEBSD-7-3  -  FREEBSD-7-2  -  FREEBSD-7-1  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-4  -  FREEBSD-6-3  -  FREEBSD-6-2  -  FREEBSD-6-1  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-5  -  FREEBSD-5-4  -  FREEBSD-5-3  -  FREEBSD-5-2  -  FREEBSD-5-1  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  linux-2.6  -  linux-2.4.22  -  MK83  -  MK84  -  PLAN9  -  DFBSD  -  NETBSD  -  NETBSD5  -  NETBSD4  -  NETBSD3  -  NETBSD20  -  OPENBSD  -  xnu-517  -  xnu-792  -  xnu-792.6.70  -  xnu-1228  -  xnu-1456.1.26  -  xnu-1699.24.8  -  xnu-2050.18.24  -  OPENSOLARIS  -  minix-3-1-1 
SearchContext: -  none  -  3  -  10 

    1 /* The <string.h> header contains prototypes for the string handling 
    2  * functions.
    3  */
    4 
    5 #ifndef _STRING_H
    6 #define _STRING_H
    7 
    8 #define NULL    ((void *)0)
    9 
   10 #ifndef _SIZE_T
   11 #define _SIZE_T
   12 typedef unsigned int size_t;    /* type returned by sizeof */
   13 #endif /*_SIZE_T */
   14 
   15 /* Function Prototypes. */
   16 #ifndef _ANSI_H
   17 #include <ansi.h>
   18 #endif
   19 
   20 _PROTOTYPE( void *memchr, (const void *_s, int _c, size_t _n)           );
   21 _PROTOTYPE( int memcmp, (const void *_s1, const void *_s2, size_t _n)   );
   22 _PROTOTYPE( void *memcpy, (void *_s1, const void *_s2, size_t _n)       );
   23 _PROTOTYPE( void *memmove, (void *_s1, const void *_s2, size_t _n)      );
   24 _PROTOTYPE( void *memset, (void *_s, int _c, size_t _n)                 );
   25 _PROTOTYPE( char *strcat, (char *_s1, const char *_s2)                  );
   26 _PROTOTYPE( char *strchr, (const char *_s, int _c)                      );
   27 _PROTOTYPE( int strncmp, (const char *_s1, const char *_s2, size_t _n)  );
   28 _PROTOTYPE( int strcmp, (const char *_s1, const char *_s2)              );
   29 _PROTOTYPE( int strcoll, (const char *_s1, const char *_s2)             );
   30 _PROTOTYPE( char *strcpy, (char *_s1, const char *_s2)                  );
   31 _PROTOTYPE( size_t strcspn, (const char *_s1, const char *_s2)          );
   32 _PROTOTYPE( char *strerror, (int _errnum)                               );
   33 _PROTOTYPE( size_t strlen, (const char *_s)                             );
   34 _PROTOTYPE( char *strncat, (char *_s1, const char *_s2, size_t _n)      );
   35 _PROTOTYPE( char *strncpy, (char *_s1, const char *_s2, size_t _n)      );
   36 _PROTOTYPE( char *strpbrk, (const char *_s1, const char *_s2)           );
   37 _PROTOTYPE( char *strrchr, (const char *_s, int _c)                     );
   38 _PROTOTYPE( size_t strspn, (const char *_s1, const char *_s2)           );
   39 _PROTOTYPE( char *strstr, (const char *_s1, const char *_s2)            );
   40 _PROTOTYPE( char *strtok, (char *_s1, const char *_s2)                  );
   41 _PROTOTYPE( size_t strxfrm, (char *_s1, const char *_s2, size_t _n)     );
   42 
   43 #ifdef _POSIX_SOURCE
   44 /* Open Group Base Specifications Issue 6 (not complete) */
   45  char *strdup(const char *_s1);
   46 #endif
   47 
   48 #ifdef _MINIX
   49 /* For backward compatibility. */
   50 _PROTOTYPE( char *index, (const char *_s, int _charwanted)              );
   51 _PROTOTYPE( char *rindex, (const char *_s, int _charwanted)             );
   52 _PROTOTYPE( void bcopy, (const void *_src, void *_dst, size_t _length)  );
   53 _PROTOTYPE( int bcmp, (const void *_s1, const void *_s2, size_t _length));
   54 _PROTOTYPE( void bzero, (void *_dst, size_t _length)                    );
   55 _PROTOTYPE( void *memccpy, (char *_dst, const char *_src, int _ucharstop,
   56                                                     size_t _size)       );
   57 
   58 /* Misc. extra functions */
   59 _PROTOTYPE( int strcasecmp, (const char *_s1, const char *_s2)          );
   60 _PROTOTYPE( int strncasecmp, (const char *_s1, const char *_s2,
   61                                                         size_t _len)    );
   62 _PROTOTYPE( size_t strnlen, (const char *_s, size_t _n)                 );
   63 #endif
   64 
   65 #endif /* _STRING_H */

Cache object: 3f2d05ba74736fdba29f1dd02853fb03


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.