Make all bucket and overflow addresses unsigned
[unix-history] / usr / src / lib / libc / string / string.3
CommitLineData
bf23a0df
KB
1.\" Copyright (c) 1990 The Regents of the University of California.
2.\" All rights reserved.
2fe842cb 3.\"
bf23a0df
KB
4.\" This code is derived from software contributed to Berkeley by
5.\" Chris Torek.
2fe842cb 6.\"
bf23a0df
KB
7.\" %sccs.include.redist.man%
8.\"
ee7c1421 9.\" @(#)string.3 6.8 (Berkeley) %G%
bf23a0df
KB
10.\"
11.TH STRING 3 ""
2fe842cb
KM
12.UC 4
13.SH NAME
bf23a0df
KB
14strcat, strncat, strchr, strrchr, strcmp, strncmp, strcasecmp,
15strncasecmp, strcpy, strncpy, strerror, strlen, strpbrk, strsep,
16strspn, strcspn, strstr, strtok, index, rindex \- string operations
2fe842cb
KM
17.SH SYNOPSIS
18.nf
bf23a0df
KB
19.ft B
20#include <string.h>
21
22char *
23strcat(char *s, const char * append);
24
25char *
26strncat(char *s, const char *append, size_t count);
27
28char *
29strchr(const char *s, int c);
30
31char *
32strrchr(const char *s, int c);
33
34strcmp(const char *s1, const char *s2);
35
36strncmp(const char *s1, const char *s2, size_t count);
37
38strcasecmp(const char *s1, const char *s2);
39
40strncasecmp(const char *s1, const char *s2, size_t count);
41
42char *
43strcpy(char *dst, const char *src);
44
45char *
46strncpy(char *dst, const char *src, size_t count);
47
48char *
49strerror(int errno);
50
bf4b3058 51size_t
bf23a0df
KB
52strlen(const char *s);
53
54char *
55strpbrk(const char *s, const char *charset);
56
57char *
bf4b3058 58strsep(char **stringp, const char *delim);
bf23a0df
KB
59
60size_t
61strspn(const char *s, const char *charset);
62
63size_t
64strcspn(const char *s, const char *charset);
65
66char *
67strstr(const char *big, const char *little);
68
69char *
70strtok(char *s, const char *delim);
71
72char *
73index(const char *s, int c);
74
75char *
76rindex(const char *s, int c);
77.ft R
2fe842cb
KM
78.fi
79.SH DESCRIPTION
80These functions operate on null-terminated strings.
2fe842cb 81.PP
bf23a0df
KB
82See the specific manual pages for more information.
83.PP
84Except as noted in their specific manual pages,
85they do not check for overflow of any destination
86string.
87.SH SEE\ ALSO
ee7c1421
KB
88index(3), strcat(3), strchr(3), strrchr(3), strcmp(3), strcasecmp(3),
89strcpy(3), strerror(3), strlen(3), strpbrk(3), strsep(3), strspn(3),
90strcspn(3), strstr(3), strtok(3), rindex(3)
bf23a0df
KB
91.SH STANDARDS
92.IR Strcat ,
93.IR strncat ,
94.IR strchr ,
95.IR strrchr ,
96.IR strcmp ,
97.IR strncmp ,
98.IR strcpy ,
99.IR strncpy ,
100.IR strerror ,
101.IR strlen ,
102.IR strpbrk ,
103.IR strsep ,
104.IR strspn ,
105.IR strcspn ,
106.IR strstr ,
107and
108.IR strtok
109conform to ANSI X3.159-1989 (``ANSI C'').