File: strings.tex

package info (click to toggle)
picolibc 1.8-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 31,616 kB
  • sloc: ansic: 312,308; asm: 22,739; perl: 2,414; sh: 1,619; python: 1,019; pascal: 329; exp: 287; makefile: 164; xml: 40; cpp: 10
file content (221 lines) | stat: -rw-r--r-- 4,839 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
#
#Copyright (c) 1994 Cygnus Support.
#All rights reserved.
#
#Redistribution and use in source and binary forms are permitted
#provided that the above copyright notice and this paragraph are
#duplicated in all such forms and that any documentation,
#and/or other materials related to such
#distribution and use acknowledge that the software was developed
#at Cygnus Support, Inc.  Cygnus Support, Inc. may not be used to
#endorse or promote products derived from this software without
#specific prior written permission.
#THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
#IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
#WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
#
@node Strings
@chapter Strings and Memory (@file{string.h})

This chapter describes string-handling functions and functions for
managing areas of memory.  The corresponding declarations are in
@file{string.h}.

@menu
* bcmp::        Compare two memory areas
* bcopy::       Copy memory regions
* bzero::       Initialize memory to zero
* index::       Search for character in string
* memccpy::     Copy memory regions up to end-token
* memchr::      Find character in memory
* memcmp::      Compare two memory areas
* memcpy::      Copy memory regions
* memmem::      Find memory segment
* memmove::     Move possibly overlapping memory
* mempcpy::	Copy memory regions and locate end
* memrchr::     Reverse search for character in memory
* memset::      Set an area of memory
* rawmemchr::   Find character in memory
* rindex::      Reverse search for character in string
* stpcpy::      Copy string returning a pointer to its end
* stpncpy::     Counted copy string returning a pointer to its end
* strcasecmp::	Compare strings ignoring case
* strcasestr::	Find string segment ignoring case
* strcat::      Concatenate strings
* strchr::      Search for character in string
* strchrnul::   Search for character in string
* strcmp::      Character string compare
* strcoll::     Locale-specific character string compare
* strcpy::      Copy string
* strcspn::     Count chars not in string
* strerror::    Convert error number to string (strerror, strerror_l)
* strerror_r::  Convert error number to string
* strlen::      Character string length
* strlwr::	Convert string to lowercase
* strncasecmp::	Compare strings ignoring case
* strncat::     Concatenate strings
* strncmp::     Character string compare
* strncpy::     Counted copy string
* strnstr::     Find string segment
* strnlen::     Character string length
* strpbrk::     Find chars in string
* strrchr::     Reverse search for character in string
* strsignal::	Return signal message string
* strspn::      Find initial match
* strstr::      Find string segment
* strtok::      Get next token from a string
* strupr::	Convert string to upper case
* strverscmp::  Compare version strings
* strxfrm::     Transform string
* swab::        Swap adjacent bytes
* wcscasecmp::  Compare wide character strings ignoring case
* wcsdup::      Wide character string duplicate
* wcsncasecmp:: Compare wide character strings ignoring case
@end menu

@page
@include string/bcmp.def

@page
@include string/bcopy.def

@page
@include string/bzero.def

@page
@include string/index.def

@page
@include string/memccpy.def

@page
@include string/memchr.def

@page
@include string/memcmp.def

@page
@include string/memcpy.def

@page
@include string/memmem.def

@page
@include string/memmove.def

@page
@include string/mempcpy.def

@page
@include string/memrchr.def

@page
@include string/memset.def

@page
@include string/rawmemchr.def

@page
@include string/rindex.def

@page
@include string/stpcpy.def

@page
@include string/stpncpy.def

@page
@include string/strcasecmp.def

@page
@include string/strcasestr.def

@page
@include string/strcat.def

@page
@include string/strchr.def

@page
@include string/strchrnul.def

@page
@include string/strcmp.def

@page
@include string/strcoll.def

@page
@include string/strcpy.def

@page
@include string/strcspn.def

@page
@include string/strerror.def

@page
@include string/strerror_r.def

@page
@include string/strlen.def

@page
@include string/strlwr.def

@page
@include string/strncasecmp.def

@page
@include string/strncat.def

@page
@include string/strncmp.def

@page
@include string/strncpy.def

@page
@include string/strnstr.def

@page
@include string/strnlen.def

@page
@include string/strpbrk.def

@page
@include string/strrchr.def

@page
@include string/strsignal.def

@page
@include string/strspn.def

@page
@include string/strstr.def

@page
@include string/strtok.def

@page
@include string/strupr.def

@page
@include string/strverscmp.def

@page
@include string/strxfrm.def

@page
@include string/swab.def

@page
@include string/wcscasecmp.def

@page
@include string/wcsdup.def

@page
@include string/wcsncasecmp.def