Commit 8bd65331 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Fixed typo. Include sys/types.h

parent 43918e9a
/*
* $Id: memset.c,v 1.1 1993/10/14 22:13:29 ceder Exp $
* $Id: memset.c,v 1.2 1993/10/15 11:22:47 ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -23,23 +23,23 @@
* Please mail bug reports to bug-lyskom@lysator.liu.se.
*/
static char *rcsid = "$Id: memset.c,v 1.1 1993/10/14 22:13:29 ceder Exp $";
static char *rcsid = "$Id: memset.c,v 1.2 1993/10/15 11:22:47 ceder Exp $";
#include "rcs.h"
USE(rcsid);
#include <sys/types.h>
void
memset(void *s,
int c,
size_t len)
{
if (c == 0)
bzero(s, len)
bzero(s, len);
else
{
char *p = s;
while (len-- > 0)
*p++ = c;
}
return s;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment