Go to the source code of this file.
|
char * | Strncat (char *const, const char *const, const size_t) |
|
char * | Strncpy (char *const, const char *const, const size_t) |
|
char * | Strnpcat (char *const, const char *const, size_t) |
|
char * | Strnpcpy (char *const, const char *const, size_t) |
|
char * | Strtok (char *, const char *) |
|
int | Strntok (char *, size_t, char *, const char *) |
|
char * | strtokc (char *, const char *, char **) |
|
int | strntokc (char *, size_t, char *, const char *, char **) |
|
char * | Dynscat (char **dst,...) |
|
◆ STRN_ZERO_PAD
Definition at line 8 of file Strn.h.
◆ STRNCAT
◆ STRNCPY
◆ STRNP_ZERO_PAD
◆ Dynscat()
Definition at line 9 of file Dynscat.c.
10{
13 char *newdst, *dcp;
14 size_t curLen, catLen, srcLen;
15
16 if (
dst == (
char **) 0)
18
19 catLen = 0;
25 }
27
29 curLen = 0;
30 else
32
34 newdst =
malloc(curLen + catLen + 2);
35 else
39
40 dcp = newdst + curLen;
46 dcp += srcLen;
48 }
50 *dcp = '\0';
51
53 return (newdst);
54}
ACPI_SIZE strlen(const char *String)
#define memcpy(s1, s2, n)
void int int ULONGLONG int va_list * ap
Referenced by ComputeLNames(), ComputeRNames(), and main().
◆ Strncat()
Definition at line 13 of file Strncat.c.
14{
17 register const char *
s;
18
22
23
24
25
26
27
29 if ((*
d++ = *
s++) == 0) {
30#if (STRN_ZERO_PAD == 1)
31
34#endif
36 }
37 }
38
39
40
42 }
44}
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Referenced by AbbrevStr(), BookmarkToURL(), ExpandTilde(), FileToURL(), GetHomeDir(), GetOurHostName(), main(), MakePrompt(), Path(), SpoolName(), UnDosLine(), and UnLslRLine().
◆ Strncpy()
Definition at line 11 of file Strncpy.c.
12{
14 register const char *
s;
16
21
22
23
24
25
26
28 if ((*
d++ = *
s++) == 0) {
29#if (STRN_ZERO_PAD == 1)
30
33#endif
35 }
36 }
37
38
39
41 }
43}
Referenced by AbbrevStr(), AbsoluteToRelative(), BookmarkToURL(), Chdirs(), DefaultBookmarkName(), ExpandTilde(), FileToURL(), FTPChdir3(), FTPChdirAndGetCWD(), FTPGetCWD(), FTPGetLocalCWD(), GetHomeDir(), GetHostByName(), GetOurHostName(), GetUsrName(), GmTimeStr(), main(), MakePrompt(), MyInetAddr(), nFTPChdirAndGetCWD(), Path(), RunBookmarkEditor(), SetXtermTitle(), SpoolName(), UnDosLine(), and UnLslRLine().
◆ Strnpcat()
Definition at line 16 of file Strnpcat.c.
17{
20 register const char *
s;
23
27
28
29
30
31
32
38#if (STRNP_ZERO_PAD == 1)
39
42#endif
44 }
46 }
47
48
49
52 }
54}
Referenced by FTPFtwL2(), main(), and PathCat().
◆ Strnpcpy()
Definition at line 12 of file Strnpcpy.c.
13{
15 register const char *
s;
19
23
24
25
26
27
28
34#if (STRNP_ZERO_PAD == 1)
35
38#endif
40 }
42 }
43
44
45
48 } else {
50 }
52}
Referenced by main(), and PathCat().
◆ Strntok()
Definition at line 80 of file Strntok.c.
81{
82 static char *
p =
NULL;
84 char *lim;
87
89 lim =
dst + tokenSize - 1;
90
93 } else {
96 return (-1);
97 }
98 }
99
103 break;
104 }
108 break;
109 }
112 }
115
116#if (STRN_ZERO_PAD == 1)
117
120#endif
121
123}
char * strchr(const char *String, int ch)
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
GLenum GLuint GLenum GLsizei const GLchar * buf
◆ strntokc()
Definition at line 92 of file strtokc.c.
93{
95 const char *cp2;
100
102 lim =
dst + tokenSize - 1;
103
104 if (parsestr ==
NULL)
106 else
108
111 goto done;
112 }
113
114
116next1:
119
121 goto done;
122 }
123 for (cp2 = delims; ; ) {
125 if (c2 == '\0') {
126
127
128
132 goto starttok;
133 }
135
136
137 goto next1;
138 }
139 }
140
141 }
142
143starttok:
147
149 break;
150 }
151 for (cp2 = delims; ; ) {
153 if (c2 == '\0') {
154
155
156
157 break;
158 }
160
161
164 goto done;
165 }
166 }
169 }
170
171done:
174
175#if (STRN_ZERO_PAD == 1)
176
179#endif
180
182}
◆ Strtok()
Definition at line 35 of file Strntok.c.
36{
37 static char *
p =
NULL;
39
42 } else {
45 }
49 break;
50 }
54 break;
55 }
56 }
58}
◆ strtokc()
Definition at line 7 of file strtokc.c.
8{
10 const char *cp2;
13
16 else
18
22 }
23
24
26next1:
29
32 }
33 for (cp2 = delims; ; ) {
35 if (c2 == '\0') {
36
37
38
40 goto starttok;
41 }
43
44
45 goto next1;
46 }
47 }
48
49 }
50
51starttok:
55
57 break;
58 }
59 for (cp2 = delims; ; ) {
61 if (c2 == '\0') {
62
63
64
65 break;
66 }
68
69
73 }
74 }
75 }
77}