memset.c (8fb3f3f68288ae2b1b53dd65e3dd673d83c80f4c) memset.c (bc0ad8e7a1c5acaebd9516356b2c00619f77a053)
1/*-
2 * Copyright (c) 1990, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Mike Hibler and Chris Torek.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 29 unchanged lines hidden (view full) ---

38static char sccsid[] = "@(#)memset.c 8.1 (Berkeley) 6/4/93";
39#endif /* LIBC_SCCS and not lint */
40#include <sys/cdefs.h>
41__FBSDID("$FreeBSD$");
42
43#include <sys/types.h>
44
45#include <limits.h>
1/*-
2 * Copyright (c) 1990, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Mike Hibler and Chris Torek.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 29 unchanged lines hidden (view full) ---

38static char sccsid[] = "@(#)memset.c 8.1 (Berkeley) 6/4/93";
39#endif /* LIBC_SCCS and not lint */
40#include <sys/cdefs.h>
41__FBSDID("$FreeBSD$");
42
43#include <sys/types.h>
44
45#include <limits.h>
46#include <string.h>
47
48#define wsize sizeof(u_int)
49#define wmask (wsize - 1)
50
51#ifdef BZERO
46
47#define wsize sizeof(u_int)
48#define wmask (wsize - 1)
49
50#ifdef BZERO
51#include <strings.h>
52
52#define RETURN return
53#define VAL 0
54#define WIDEVAL 0
55
56void
53#define RETURN return
54#define VAL 0
55#define WIDEVAL 0
56
57void
57bzero(dst0, length)
58 void *dst0;
59 size_t length;
58bzero(void *dst0, size_t length)
60#else
59#else
60#include <string.h>
61
61#define RETURN return (dst0)
62#define VAL c0
63#define WIDEVAL c
64
65void *
62#define RETURN return (dst0)
63#define VAL c0
64#define WIDEVAL c
65
66void *
66memset(dst0, c0, length)
67 void *dst0;
68 int c0;
69 size_t length;
67memset(void *dst0, int c0, size_t length)
70#endif
71{
72 size_t t;
73#ifndef BZERO
74 u_int c;
75#endif
76 u_char *dst;
77

--- 57 unchanged lines hidden ---
68#endif
69{
70 size_t t;
71#ifndef BZERO
72 u_int c;
73#endif
74 u_char *dst;
75

--- 57 unchanged lines hidden ---