logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

string.h.0p (4799B)


  1. '\" et
  2. .TH string.h "0P" 2017 "IEEE/The Open Group" "POSIX Programmer's Manual"
  3. .\"
  4. .SH PROLOG
  5. This manual page is part of the POSIX Programmer's Manual.
  6. The Linux implementation of this interface may differ (consult
  7. the corresponding Linux manual page for details of Linux behavior),
  8. or the interface may not be implemented on Linux.
  9. .\"
  10. .SH NAME
  11. string.h
  12. \(em string operations
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. #include <string.h>
  17. .fi
  18. .SH DESCRIPTION
  19. Some of the functionality described on this reference page extends the
  20. ISO\ C standard. Applications shall define the appropriate feature test macro
  21. (see the System Interfaces volume of POSIX.1\(hy2017,
  22. .IR "Section 2.2" ", " "The Compilation Environment")
  23. to enable the visibility of these symbols in this header.
  24. .P
  25. The
  26. .IR <string.h>
  27. header shall define NULL and
  28. .BR size_t
  29. as described in
  30. .IR <stddef.h> .
  31. .P
  32. The
  33. .IR <string.h>
  34. header shall define the
  35. .BR locale_t
  36. type as described in
  37. .IR <locale.h> .
  38. .P
  39. The following shall be declared as functions and may also be defined as
  40. macros. Function prototypes shall be provided for use with ISO\ C standard
  41. compilers.
  42. .sp
  43. .RS 4
  44. .nf
  45. void *memccpy(void *restrict, const void *restrict, int, size_t);
  46. void *memchr(const void *, int, size_t);
  47. int memcmp(const void *, const void *, size_t);
  48. void *memcpy(void *restrict, const void *restrict, size_t);
  49. void *memmove(void *, const void *, size_t);
  50. void *memset(void *, int, size_t);
  51. char *stpcpy(char *restrict, const char *restrict);
  52. char *stpncpy(char *restrict, const char *restrict, size_t);
  53. char *strcat(char *restrict, const char *restrict);
  54. char *strchr(const char *, int);
  55. int strcmp(const char *, const char *);
  56. int strcoll(const char *, const char *);
  57. int strcoll_l(const char *, const char *, locale_t);
  58. char *strcpy(char *restrict, const char *restrict);
  59. size_t strcspn(const char *, const char *);
  60. char *strdup(const char *);
  61. char *strerror(int);
  62. char *strerror_l(int, locale_t);
  63. int strerror_r(int, char *, size_t);
  64. size_t strlen(const char *);
  65. char *strncat(char *restrict, const char *restrict, size_t);
  66. int strncmp(const char *, const char *, size_t);
  67. char *strncpy(char *restrict, const char *restrict, size_t);
  68. char *strndup(const char *, size_t);
  69. size_t strnlen(const char *, size_t);
  70. char *strpbrk(const char *, const char *);
  71. char *strrchr(const char *, int);
  72. char *strsignal(int);
  73. size_t strspn(const char *, const char *);
  74. char *strstr(const char *, const char *);
  75. char *strtok(char *restrict, const char *restrict);
  76. char *strtok_r(char *restrict, const char *restrict, char **restrict);
  77. size_t strxfrm(char *restrict, const char *restrict, size_t);
  78. size_t strxfrm_l(char *restrict, const char *restrict,
  79. size_t, locale_t);
  80. .fi
  81. .P
  82. .RE
  83. .P
  84. Inclusion of the
  85. .IR <string.h>
  86. header may also make visible all symbols from
  87. .IR <stddef.h> .
  88. .LP
  89. .IR "The following sections are informative."
  90. .SH "APPLICATION USAGE"
  91. None.
  92. .SH RATIONALE
  93. None.
  94. .SH "FUTURE DIRECTIONS"
  95. None.
  96. .SH "SEE ALSO"
  97. .IR "\fB<locale.h>\fP",
  98. .IR "\fB<stddef.h>\fP",
  99. .IR "\fB<sys_types.h>\fP"
  100. .P
  101. .ad l
  102. The System Interfaces volume of POSIX.1\(hy2017,
  103. .IR "Section 2.2" ", " "The Compilation Environment",
  104. .IR "\fImemccpy\fR\^(\|)",
  105. .IR "\fImemchr\fR\^(\|)",
  106. .IR "\fImemcmp\fR\^(\|)",
  107. .IR "\fImemcpy\fR\^(\|)",
  108. .IR "\fImemmove\fR\^(\|)",
  109. .IR "\fImemset\fR\^(\|)",
  110. .IR "\fIstrcat\fR\^(\|)",
  111. .IR "\fIstrchr\fR\^(\|)",
  112. .IR "\fIstrcmp\fR\^(\|)",
  113. .IR "\fIstrcoll\fR\^(\|)",
  114. .IR "\fIstrcpy\fR\^(\|)",
  115. .IR "\fIstrcspn\fR\^(\|)",
  116. .IR "\fIstrdup\fR\^(\|)",
  117. .IR "\fIstrerror\fR\^(\|)",
  118. .IR "\fIstrlen\fR\^(\|)",
  119. .IR "\fIstrncat\fR\^(\|)",
  120. .IR "\fIstrncmp\fR\^(\|)",
  121. .IR "\fIstrncpy\fR\^(\|)",
  122. .IR "\fIstrpbrk\fR\^(\|)",
  123. .IR "\fIstrrchr\fR\^(\|)",
  124. .IR "\fIstrsignal\fR\^(\|)",
  125. .IR "\fIstrspn\fR\^(\|)",
  126. .IR "\fIstrstr\fR\^(\|)",
  127. .IR "\fIstrtok\fR\^(\|)",
  128. .IR "\fIstrxfrm\fR\^(\|)"
  129. .ad b
  130. .\"
  131. .SH COPYRIGHT
  132. Portions of this text are reprinted and reproduced in electronic form
  133. from IEEE Std 1003.1-2017, Standard for Information Technology
  134. -- Portable Operating System Interface (POSIX), The Open Group Base
  135. Specifications Issue 7, 2018 Edition,
  136. Copyright (C) 2018 by the Institute of
  137. Electrical and Electronics Engineers, Inc and The Open Group.
  138. In the event of any discrepancy between this version and the original IEEE and
  139. The Open Group Standard, the original IEEE and The Open Group Standard
  140. is the referee document. The original Standard can be obtained online at
  141. http://www.opengroup.org/unix/online.html .
  142. .PP
  143. Any typographical or formatting errors that appear
  144. in this page are most likely
  145. to have been introduced during the conversion of the source files to
  146. man page format. To report such errors, see
  147. https://www.kernel.org/doc/man-pages/reporting_bugs.html .