|
|
1.1 root 1: .\" Copyright (c) 1990 The Regents of the University of California.
2: .\" All rights reserved.
3: .\"
4: .\" This code is derived from software contributed to Berkeley by
5: .\" Chris Torek.
6: .\"
7: .\" Redistribution and use in source and binary forms are permitted provided
8: .\" that: (1) source distributions retain this entire copyright notice and
9: .\" comment, and (2) distributions including binaries display the following
10: .\" acknowledgement: ``This product includes software developed by the
11: .\" University of California, Berkeley and its contributors'' in the
12: .\" documentation or other materials provided with the distribution and in
13: .\" all advertising materials mentioning features or use of this software.
14: .\" Neither the name of the University nor the names of its contributors may
15: .\" be used to endorse or promote products derived from this software without
16: .\" specific prior written permission.
17: .\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
18: .\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
19: .\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
20: .\"
21: .\" @(#)string.3 6.8 (Berkeley) 6/24/90
22: .\"
23: .TH STRING 3 "June 24, 1990"
24: .UC 4
25: .SH NAME
26: strcat, strncat, strchr, strrchr, strcmp, strncmp, strcasecmp,
27: strncasecmp, strcpy, strncpy, strerror, strlen, strpbrk, strsep,
28: strspn, strcspn, strstr, strtok, index, rindex \- string operations
29: .SH SYNOPSIS
30: .nf
31: .ft B
32: #include <string.h>
33:
34: char *
35: strcat(char *s, const char * append);
36:
37: char *
38: strncat(char *s, const char *append, size_t count);
39:
40: char *
41: strchr(const char *s, int c);
42:
43: char *
44: strrchr(const char *s, int c);
45:
46: strcmp(const char *s1, const char *s2);
47:
48: strncmp(const char *s1, const char *s2, size_t count);
49:
50: strcasecmp(const char *s1, const char *s2);
51:
52: strncasecmp(const char *s1, const char *s2, size_t count);
53:
54: char *
55: strcpy(char *dst, const char *src);
56:
57: char *
58: strncpy(char *dst, const char *src, size_t count);
59:
60: char *
61: strerror(int errno);
62:
63: size_t
64: strlen(const char *s);
65:
66: char *
67: strpbrk(const char *s, const char *charset);
68:
69: char *
70: strsep(char **stringp, const char *delim);
71:
72: size_t
73: strspn(const char *s, const char *charset);
74:
75: size_t
76: strcspn(const char *s, const char *charset);
77:
78: char *
79: strstr(const char *big, const char *little);
80:
81: char *
82: strtok(char *s, const char *delim);
83:
84: char *
85: index(const char *s, int c);
86:
87: char *
88: rindex(const char *s, int c);
89: .ft R
90: .fi
91: .SH DESCRIPTION
92: These functions operate on null-terminated strings.
93: .PP
94: See the specific manual pages for more information.
95: .PP
96: Except as noted in their specific manual pages,
97: they do not check for overflow of any destination
98: string.
99: .SH SEE\ ALSO
100: index(3), strcat(3), strchr(3), strrchr(3), strcmp(3), strcasecmp(3),
101: strcpy(3), strerror(3), strlen(3), strpbrk(3), strsep(3), strspn(3),
102: strcspn(3), strstr(3), strtok(3), rindex(3)
103: .SH STANDARDS
104: .IR Strcat ,
105: .IR strncat ,
106: .IR strchr ,
107: .IR strrchr ,
108: .IR strcmp ,
109: .IR strncmp ,
110: .IR strcpy ,
111: .IR strncpy ,
112: .IR strerror ,
113: .IR strlen ,
114: .IR strpbrk ,
115: .IR strsep ,
116: .IR strspn ,
117: .IR strcspn ,
118: .IR strstr ,
119: and
120: .IR strtok
121: conform to ANSI X3.159-1989 (``ANSI C'').
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.