# 2.11BSD#431 - /usr/src/lib/libc/compat-sys5/memset.c

##### Functions

    memset            X

       1: /*
       2:  * Copyright (c) 1985 Regents of the University of California.
       3:  * All rights reserved.  The Berkeley software License Agreement
       4:  * specifies the terms and conditions for redistribution.
       5:  */
       6:
       7: /*
       8:  * Sys5 compat routine
       9:  */
      10:
      11: #if defined(LIBC_SCCS) && !defined(lint)
      12: static char sccsid[] = "@(#)memset.c	5.2 (Berkeley) 86/03/09";
      13: #endif
      14:
      15: char *
      16: memset(s, c, n)
      17:     register char *s;
      18:     register c, n;
      19: {
      20:     register char *p = s;
      21:
      22:     while (--n >= 0)
      23:         *s++ = c;
      24:
      25:     return (p);
      26: }

#### Defined functions

memset defined in line 15; used 27 times

- in /usr/include/memory.h line 17
- in /usr/include/string.h line 20
- in /usr/src/bin/ld/ld.c line 313
- in /usr/src/games/atc/include.h line 39
- in /usr/src/include/memory.h line 17
- in /usr/src/include/strings.h line 25
- in /usr/src/lib/libc/gen/devname.c line 71
- in /usr/src/libexec/tcpd/scaffold.c line 64, 137
- in /usr/src/libexec/tcpd/socket.c line 104
- in /usr/src/libexec/tcpd/tcpdmatch.c line 162, 219
- in /usr/src/new/PORT/perl.1.0.0/perl.h line 17
- in /usr/src/new/PORT/perl.1.0.10/perl.h line 28
- in /usr/src/new/PORT/perl.1.0.10/x2p/a2p.h line 17
- in /usr/src/new/PORT/perl.1.0.16/perl.h line 28
- in /usr/src/new/PORT/perl.1.0.16/x2p/a2p.h line 20
- in /usr/src/new/jove/tune.h line 161
- in /usr/src/new/kermit5.188/ckcnet.c line 90-94(2)
- in /usr/src/new/kermit5.188/ckcnet.h line 322
- in /usr/src/new/pathalias/config.h line 72-73(2)
- in /usr/src/usr.lib/libident/id_open.c line 21
- in /usr/src/usr.sbin/inetd/inetd.c line 285, 300, 740

#### Defined variables

sccsid defined in line 12; never used

Last modified: 1986-03-10 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: ?E00 |