1<string.h>(P)              POSIX Programmer's Manual             <string.h>(P)
2
3
4

NAME

6       string.h - string operations
7

SYNOPSIS

9       #include <string.h>
10

DESCRIPTION

12       Some  of the functionality described on this reference page extends the
13       ISO C standard. Applications shall define the appropriate feature  test
14       macro  (see  the System Interfaces volume of IEEE Std 1003.1-2001, Sec‐
15       tion 2.2, The Compilation Environment)  to  enable  the  visibility  of
16       these symbols in this header.
17
18       The <string.h> header shall define the following:
19
20       NULL   Null pointer constant.
21
22       size_t As described in <stddef.h> .
23
24
25       The following shall be declared as functions and may also be defined as
26       macros. Function prototypes shall be provided.
27
28
29              void    *memccpy(void *restrict, const void *restrict, int, size_t);
30
31              void    *memchr(const void *, int, size_t);
32              int      memcmp(const void *, const void *, size_t);
33              void    *memcpy(void *restrict, const void *restrict, size_t);
34              void    *memmove(void *, const void *, size_t);
35              void    *memset(void *, int, size_t);
36              char    *strcat(char *restrict, const char *restrict);
37              char    *strchr(const char *, int);
38              int      strcmp(const char *, const char *);
39              int      strcoll(const char *, const char *);
40              char    *strcpy(char *restrict, const char *restrict);
41              size_t   strcspn(const char *, const char *);
42
43              char    *strdup(const char *);
44
45              char    *strerror(int);
46
47              int     *strerror_r(int, char *, size_t);
48
49              size_t   strlen(const char *);
50              char    *strncat(char *restrict, const char *restrict, size_t);
51              int      strncmp(const char *, const char *, size_t);
52              char    *strncpy(char *restrict, const char *restrict, size_t);
53              char    *strpbrk(const char *, const char *);
54              char    *strrchr(const char *, int);
55              size_t   strspn(const char *, const char *);
56              char    *strstr(const char *, const char *);
57              char    *strtok(char *restrict, const char *restrict);
58
59              char    *strtok_r(char *, const char *, char **);
60
61              size_t   strxfrm(char *restrict, const char *restrict, size_t);
62
63       Inclusion of the <string.h> header may also make  visible  all  symbols
64       from <stddef.h>.
65
66       The following sections are informative.
67

APPLICATION USAGE

69       None.
70

RATIONALE

72       None.
73

FUTURE DIRECTIONS

75       None.
76

SEE ALSO

78       <stddef.h>   ,   <sys/types.h>   ,  the  System  Interfaces  volume  of
79       IEEE Std 1003.1-2001, memccpy(),  memchr(),  memcmp(),  memcpy(),  mem‐
80       move(),  memset(),  strcat(),  strchr(), strcmp(), strcoll(), strcpy(),
81       strcspn(),  strdup(),  strerror(),  strlen(),   strncat(),   strncmp(),
82       strncpy(),   strpbrk(),   strrchr(),   strspn(),   strstr(),  strtok(),
83       strxfrm()
84
86       Portions of this text are reprinted and reproduced in  electronic  form
87       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
88       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
89       Specifications  Issue  6,  Copyright  (C) 2001-2003 by the Institute of
90       Electrical and Electronics Engineers, Inc and The Open  Group.  In  the
91       event of any discrepancy between this version and the original IEEE and
92       The Open Group Standard, the original IEEE and The Open Group  Standard
93       is  the  referee document. The original Standard can be obtained online
94       at http://www.opengroup.org/unix/online.html .
95
96
97
98IEEE/The Open Group                  2003                        <string.h>(P)
Impressum