Commit a54e36ed authored by Per Cederqvist's avatar Per Cederqvist
Browse files

POSIXized include files. (Still very ugly, though. More work is needed).

parent 2799d7fc
/*
* $Id: zmalloc.c,v 1.6 1993/10/08 09:59:32 ceder Exp $
* $Id: zmalloc.c,v 1.7 1993/10/10 17:16:42 ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -48,7 +48,7 @@
*/
static char *rcsid = "$Id: zmalloc.c,v 1.6 1993/10/08 09:59:32 ceder Exp $";
static char *rcsid = "$Id: zmalloc.c,v 1.7 1993/10/10 17:16:42 ceder Exp $";
#ifndef __vax__
#include <stddef.h>
......@@ -64,11 +64,11 @@ static char *rcsid = "$Id: zmalloc.c,v 1.6 1993/10/08 09:59:32 ceder Exp $";
#if !STDC_HEADERS && HAVE_MEMORY_H
#include <memory.h>
#endif
#define index strchr
#define rindex strrchr
#define bcopy(s, d, n) memcpy ((d), (s), (n))
#define bcmp(s1, s2, n) memcmp ((s1), (s2), (n))
#define bzero(s, n) memset ((s), 0, (n))
/*#define index strchr*/
/*#define rindex strrchr*/
/*#define bcopy(s, d, n) memcpy ((d), (s), (n))*/
/*#define bcmp(s1, s2, n) memcmp ((s1), (s2), (n))*/
/*#define bzero(s, n) memset ((s), 0, (n))*/
#else /* not STDC_HEADERS and not HAVE_STRING_H */
#include <strings.h>
/* memory.h and strings.h conflict on some systems. */
......
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