Browse Source

Update man page and sccs tags from lite2.

OPENBSD_2_2
millert 27 years ago
parent
commit
741d13126a
4 changed files with 35 additions and 20 deletions
  1. +8
    -6
      src/lib/libc/string/memccpy.3
  2. +9
    -3
      src/lib/libc/string/memccpy.c
  3. +7
    -6
      src/lib/libc/string/strcasecmp.3
  4. +11
    -5
      src/lib/libc/string/strcasecmp.c

+ 8
- 6
src/lib/libc/string/memccpy.3 View File

@ -1,5 +1,7 @@
.\" Copyright (c) 1990, 1991 The Regents of the University of California.
.\" All rights reserved.
.\" $OpenBSD: memccpy.3,v 1.3 1997/08/20 04:09:39 millert Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
@ -29,13 +31,14 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\" $OpenBSD: memccpy.3,v 1.2 1996/08/19 08:34:03 tholo Exp $
.\" @(#)memccpy.3 8.1 (Berkeley) 6/9/93
.\"
.Dd April 19, 1991
.Dd June 9, 1993
.Dt MEMCCPY 3
.Os
.Sh NAME
.Nm memccpy
.Nd copy string until character found
.Sh SYNOPSIS
.Fd #include <string.h>
.Ft void *
@ -68,5 +71,4 @@ bytes are copied, and a NULL pointer is returned.
.Sh HISTORY
The
.Fn memccpy
function is
.Ud .
function first appeared in 4.4BSD.

+ 9
- 3
src/lib/libc/string/memccpy.c View File

@ -1,6 +1,8 @@
/* $OpenBSD: memccpy.c,v 1.3 1997/08/20 04:09:39 millert Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@ -32,7 +34,11 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
static char *rcsid = "$OpenBSD: memccpy.c,v 1.2 1996/08/19 08:34:03 tholo Exp $";
#if 0
static char sccsid[] = "@(#)memccpy.c 8.1 (Berkeley) 6/4/93";
#else
static char *rcsid = "$OpenBSD: memccpy.c,v 1.3 1997/08/20 04:09:39 millert Exp $";
#endif
#endif /* LIBC_SCCS and not lint */
#include <string.h>


+ 7
- 6
src/lib/libc/string/strcasecmp.3 View File

@ -1,5 +1,7 @@
.\" Copyright (c) 1990, 1991 The Regents of the University of California.
.\" All rights reserved.
.\" $OpenBSD: strcasecmp.3,v 1.3 1997/08/20 04:13:56 millert Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
.\" This code is derived from software contributed to Berkeley by
.\" Chris Torek.
@ -31,9 +33,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\" $OpenBSD: strcasecmp.3,v 1.2 1996/08/19 08:34:09 tholo Exp $
.\" @(#)strcasecmp.3 8.1 (Berkeley) 6/9/93
.\"
.Dd April 19, 1991
.Dd June 9, 1993
.Dt STRCASECMP 3
.Os
.Sh NAME
@ -83,5 +85,4 @@ The
.Fn strcasecmp
and
.Fn strncasecmp
functions are
.Ud .
functions first appeared in 4.4BSD.

+ 11
- 5
src/lib/libc/string/strcasecmp.c View File

@ -1,6 +1,8 @@
/* $OpenBSD: strcasecmp.c,v 1.3 1997/08/20 04:13:57 millert Exp $ */
/*
* Copyright (c) 1987 Regents of the University of California.
* All rights reserved.
* Copyright (c) 1987, 1993
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@ -31,12 +33,16 @@
* SUCH DAMAGE.
*/
#include <string.h>
#if defined(LIBC_SCCS) && !defined(lint)
static char *rcsid = "$OpenBSD: strcasecmp.c,v 1.2 1996/08/19 08:34:09 tholo Exp $";
#if 0
static char sccsid[] = "@(#)strcasecmp.c 8.1 (Berkeley) 6/4/93";
#else
static char *rcsid = "$OpenBSD: strcasecmp.c,v 1.3 1997/08/20 04:13:57 millert Exp $";
#endif
#endif /* LIBC_SCCS and not lint */
#include <string.h>
typedef unsigned char u_char;
/*


Loading…
Cancel
Save