diff options
| author | millert <> | 1997-08-20 04:13:57 +0000 |
|---|---|---|
| committer | millert <> | 1997-08-20 04:13:57 +0000 |
| commit | eefd83616fed7208460c4c742ea85c68488acf7c (patch) | |
| tree | 6cba1a5ee93f08e0721a99fcfa0c74683f6b7911 /src/lib/libc | |
| parent | 4eac491513b57fb0e90b92aa5b40f29e9326b233 (diff) | |
| download | openbsd-eefd83616fed7208460c4c742ea85c68488acf7c.tar.gz openbsd-eefd83616fed7208460c4c742ea85c68488acf7c.tar.bz2 openbsd-eefd83616fed7208460c4c742ea85c68488acf7c.zip | |
Update man page and sccs tags from lite2.
Diffstat (limited to 'src/lib/libc')
| -rw-r--r-- | src/lib/libc/string/memccpy.3 | 14 | ||||
| -rw-r--r-- | src/lib/libc/string/memccpy.c | 12 | ||||
| -rw-r--r-- | src/lib/libc/string/strcasecmp.3 | 13 | ||||
| -rw-r--r-- | src/lib/libc/string/strcasecmp.c | 16 |
4 files changed, 35 insertions, 20 deletions
diff --git a/src/lib/libc/string/memccpy.3 b/src/lib/libc/string/memccpy.3 index a06e60cf5d..2fabd2f5ea 100644 --- a/src/lib/libc/string/memccpy.3 +++ b/src/lib/libc/string/memccpy.3 | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | .\" Copyright (c) 1990, 1991 The Regents of the University of California. | 1 | .\" $OpenBSD: memccpy.3,v 1.3 1997/08/20 04:09:39 millert Exp $ |
| 2 | .\" All rights reserved. | 2 | .\" |
| 3 | .\" Copyright (c) 1990, 1991, 1993 | ||
| 4 | .\" The Regents of the University of California. All rights reserved. | ||
| 3 | .\" | 5 | .\" |
| 4 | .\" Redistribution and use in source and binary forms, with or without | 6 | .\" Redistribution and use in source and binary forms, with or without |
| 5 | .\" modification, are permitted provided that the following conditions | 7 | .\" modification, are permitted provided that the following conditions |
| @@ -29,13 +31,14 @@ | |||
| 29 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 31 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 30 | .\" SUCH DAMAGE. | 32 | .\" SUCH DAMAGE. |
| 31 | .\" | 33 | .\" |
| 32 | .\" $OpenBSD: memccpy.3,v 1.2 1996/08/19 08:34:03 tholo Exp $ | 34 | .\" @(#)memccpy.3 8.1 (Berkeley) 6/9/93 |
| 33 | .\" | 35 | .\" |
| 34 | .Dd April 19, 1991 | 36 | .Dd June 9, 1993 |
| 35 | .Dt MEMCCPY 3 | 37 | .Dt MEMCCPY 3 |
| 36 | .Os | 38 | .Os |
| 37 | .Sh NAME | 39 | .Sh NAME |
| 38 | .Nm memccpy | 40 | .Nm memccpy |
| 41 | .Nd copy string until character found | ||
| 39 | .Sh SYNOPSIS | 42 | .Sh SYNOPSIS |
| 40 | .Fd #include <string.h> | 43 | .Fd #include <string.h> |
| 41 | .Ft void * | 44 | .Ft void * |
| @@ -68,5 +71,4 @@ bytes are copied, and a NULL pointer is returned. | |||
| 68 | .Sh HISTORY | 71 | .Sh HISTORY |
| 69 | The | 72 | The |
| 70 | .Fn memccpy | 73 | .Fn memccpy |
| 71 | function is | 74 | function first appeared in 4.4BSD. |
| 72 | .Ud . | ||
diff --git a/src/lib/libc/string/memccpy.c b/src/lib/libc/string/memccpy.c index 4757f9c0f8..020e6e5679 100644 --- a/src/lib/libc/string/memccpy.c +++ b/src/lib/libc/string/memccpy.c | |||
| @@ -1,6 +1,8 @@ | |||
| 1 | /* $OpenBSD: memccpy.c,v 1.3 1997/08/20 04:09:39 millert Exp $ */ | ||
| 2 | |||
| 1 | /*- | 3 | /*- |
| 2 | * Copyright (c) 1990 The Regents of the University of California. | 4 | * Copyright (c) 1990, 1993 |
| 3 | * All rights reserved. | 5 | * The Regents of the University of California. All rights reserved. |
| 4 | * | 6 | * |
| 5 | * Redistribution and use in source and binary forms, with or without | 7 | * Redistribution and use in source and binary forms, with or without |
| 6 | * modification, are permitted provided that the following conditions | 8 | * modification, are permitted provided that the following conditions |
| @@ -32,7 +34,11 @@ | |||
| 32 | */ | 34 | */ |
| 33 | 35 | ||
| 34 | #if defined(LIBC_SCCS) && !defined(lint) | 36 | #if defined(LIBC_SCCS) && !defined(lint) |
| 35 | static char *rcsid = "$OpenBSD: memccpy.c,v 1.2 1996/08/19 08:34:03 tholo Exp $"; | 37 | #if 0 |
| 38 | static char sccsid[] = "@(#)memccpy.c 8.1 (Berkeley) 6/4/93"; | ||
| 39 | #else | ||
| 40 | static char *rcsid = "$OpenBSD: memccpy.c,v 1.3 1997/08/20 04:09:39 millert Exp $"; | ||
| 41 | #endif | ||
| 36 | #endif /* LIBC_SCCS and not lint */ | 42 | #endif /* LIBC_SCCS and not lint */ |
| 37 | 43 | ||
| 38 | #include <string.h> | 44 | #include <string.h> |
diff --git a/src/lib/libc/string/strcasecmp.3 b/src/lib/libc/string/strcasecmp.3 index 1aa4c4a77b..e098ff4e41 100644 --- a/src/lib/libc/string/strcasecmp.3 +++ b/src/lib/libc/string/strcasecmp.3 | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | .\" Copyright (c) 1990, 1991 The Regents of the University of California. | 1 | .\" $OpenBSD: strcasecmp.3,v 1.3 1997/08/20 04:13:56 millert Exp $ |
| 2 | .\" All rights reserved. | 2 | .\" |
| 3 | .\" Copyright (c) 1990, 1991, 1993 | ||
| 4 | .\" The Regents of the University of California. All rights reserved. | ||
| 3 | .\" | 5 | .\" |
| 4 | .\" This code is derived from software contributed to Berkeley by | 6 | .\" This code is derived from software contributed to Berkeley by |
| 5 | .\" Chris Torek. | 7 | .\" Chris Torek. |
| @@ -31,9 +33,9 @@ | |||
| 31 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 33 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 32 | .\" SUCH DAMAGE. | 34 | .\" SUCH DAMAGE. |
| 33 | .\" | 35 | .\" |
| 34 | .\" $OpenBSD: strcasecmp.3,v 1.2 1996/08/19 08:34:09 tholo Exp $ | 36 | .\" @(#)strcasecmp.3 8.1 (Berkeley) 6/9/93 |
| 35 | .\" | 37 | .\" |
| 36 | .Dd April 19, 1991 | 38 | .Dd June 9, 1993 |
| 37 | .Dt STRCASECMP 3 | 39 | .Dt STRCASECMP 3 |
| 38 | .Os | 40 | .Os |
| 39 | .Sh NAME | 41 | .Sh NAME |
| @@ -83,5 +85,4 @@ The | |||
| 83 | .Fn strcasecmp | 85 | .Fn strcasecmp |
| 84 | and | 86 | and |
| 85 | .Fn strncasecmp | 87 | .Fn strncasecmp |
| 86 | functions are | 88 | functions first appeared in 4.4BSD. |
| 87 | .Ud . | ||
diff --git a/src/lib/libc/string/strcasecmp.c b/src/lib/libc/string/strcasecmp.c index fe8b8eb890..1f487524aa 100644 --- a/src/lib/libc/string/strcasecmp.c +++ b/src/lib/libc/string/strcasecmp.c | |||
| @@ -1,6 +1,8 @@ | |||
| 1 | /* $OpenBSD: strcasecmp.c,v 1.3 1997/08/20 04:13:57 millert Exp $ */ | ||
| 2 | |||
| 1 | /* | 3 | /* |
| 2 | * Copyright (c) 1987 Regents of the University of California. | 4 | * Copyright (c) 1987, 1993 |
| 3 | * All rights reserved. | 5 | * The Regents of the University of California. All rights reserved. |
| 4 | * | 6 | * |
| 5 | * Redistribution and use in source and binary forms, with or without | 7 | * Redistribution and use in source and binary forms, with or without |
| 6 | * modification, are permitted provided that the following conditions | 8 | * modification, are permitted provided that the following conditions |
| @@ -31,12 +33,16 @@ | |||
| 31 | * SUCH DAMAGE. | 33 | * SUCH DAMAGE. |
| 32 | */ | 34 | */ |
| 33 | 35 | ||
| 36 | #include <string.h> | ||
| 37 | |||
| 34 | #if defined(LIBC_SCCS) && !defined(lint) | 38 | #if defined(LIBC_SCCS) && !defined(lint) |
| 35 | static char *rcsid = "$OpenBSD: strcasecmp.c,v 1.2 1996/08/19 08:34:09 tholo Exp $"; | 39 | #if 0 |
| 40 | static char sccsid[] = "@(#)strcasecmp.c 8.1 (Berkeley) 6/4/93"; | ||
| 41 | #else | ||
| 42 | static char *rcsid = "$OpenBSD: strcasecmp.c,v 1.3 1997/08/20 04:13:57 millert Exp $"; | ||
| 43 | #endif | ||
| 36 | #endif /* LIBC_SCCS and not lint */ | 44 | #endif /* LIBC_SCCS and not lint */ |
| 37 | 45 | ||
| 38 | #include <string.h> | ||
| 39 | |||
| 40 | typedef unsigned char u_char; | 46 | typedef unsigned char u_char; |
| 41 | 47 | ||
| 42 | /* | 48 | /* |
