Browse Source

o Mention strlcpy and strlcat

o strsep is not in ANSI X3.159-1989 (though it is in C9X)
OPENBSD_2_6
millert 25 years ago
parent
commit
1c8a35b90b
1 changed files with 10 additions and 3 deletions
  1. +10
    -3
      src/lib/libc/string/string.3

+ 10
- 3
src/lib/libc/string/string.3 View File

@ -31,13 +31,14 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE. .\" SUCH DAMAGE.
.\" .\"
.\" $OpenBSD: string.3,v 1.4 1999/05/16 19:55:17 alex Exp $
.\" $OpenBSD: string.3,v 1.5 1999/05/17 05:24:38 millert Exp $
.\" .\"
.Dd April 19, 1991 .Dd April 19, 1991
.Dt STRING 3 .Dt STRING 3
.Os BSD 4 .Os BSD 4
.Sh NAME .Sh NAME
.Nm strcat , .Nm strcat ,
.Nm strlcat ,
.Nm strncat , .Nm strncat ,
.Nm strchr , .Nm strchr ,
.Nm strrchr , .Nm strrchr ,
@ -46,6 +47,7 @@
.Nm strcasecmp, .Nm strcasecmp,
.Nm strncasecmp , .Nm strncasecmp ,
.Nm strcpy , .Nm strcpy ,
.Nm strlcpy ,
.Nm strncpy , .Nm strncpy ,
.Nm strerror , .Nm strerror ,
.Nm strlen , .Nm strlen ,
@ -61,7 +63,9 @@
.Sh SYNOPSIS .Sh SYNOPSIS
.Fd #include <string.h> .Fd #include <string.h>
.Ft char * .Ft char *
.Fn strcat "char *s" "const char * append"
.Fn strcat "char *s" "const char *append"
.Ft char *
.Fn strlcat "char *s" "const char *append" "size_t size"
.Ft char * .Ft char *
.Fn strncat "char *s" "const char *append" "size_t count" .Fn strncat "char *s" "const char *append" "size_t count"
.Ft char * .Ft char *
@ -79,6 +83,8 @@
.Ft char * .Ft char *
.Fn strcpy "char *dst" "const char *src" .Fn strcpy "char *dst" "const char *src"
.Ft char * .Ft char *
.Fn strlcpy "char *dst" "const char *src" "size_t size"
.Ft char *
.Fn strncpy "char *dst" "const char *src" "size_t count" .Fn strncpy "char *dst" "const char *src" "size_t count"
.Ft char * .Ft char *
.Fn strerror "int errno" .Fn strerror "int errno"
@ -124,6 +130,8 @@ for size limitations.
.Xr strcpy 3 , .Xr strcpy 3 ,
.Xr strcspn 3 , .Xr strcspn 3 ,
.Xr strerror 3 , .Xr strerror 3 ,
.Xr strlcat 3 ,
.Xr strlcpy 3 ,
.Xr strlen 3 , .Xr strlen 3 ,
.Xr strpbrk 3 , .Xr strpbrk 3 ,
.Xr strrchr 3 , .Xr strrchr 3 ,
@ -144,7 +152,6 @@ The
.Fn strerror , .Fn strerror ,
.Fn strlen , .Fn strlen ,
.Fn strpbrk , .Fn strpbrk ,
.Fn strsep ,
.Fn strspn , .Fn strspn ,
.Fn strcspn , .Fn strcspn ,
.Fn strstr , .Fn strstr ,


Loading…
Cancel
Save