Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!netcom!hinton From: hinton@netcom.UUCP (Greg Hinton) Newsgroups: comp.os.minix Subject: Re: CONST, VOIDSTAR etc Summary: used by 1.4a string functions Message-ID: <1807@netcom.UUCP> Date: 17 Jul 89 02:51:39 GMT References: <2887@ast.cs.vu.nl> Reply-To: hinton@netcom.UUCP (Greg Hinton) Organization: NetCom -- San Jose, CA Lines: 27 In article <2887@ast.cs.vu.nl> ast@cs.vu.nl (Andy Tanenbaum) writes: > >It has been brought to my attention (by the C compiler) that quite a few >library routines contain CONST, VOIDSTAR, SIZET etc. Are these part of the >ANSI C standard? Are they supposed to be defined in some header file? >Should I delete them all? > >Andy Tanenbaum These are in Henry Spencer's ANSI string functions which were included with version 1.4a. It's an attempt to increase portability & is explained in the file string.h.proto. I personally added the following #define's to that file & renamed it to /usr/include/string.h: #define CONST /* const not supported by compiler */ #define SIZET int #define VOIDSTAR char * Andy, does this flurry of recompilation foreshadow an imminent posting of "goodies" to the net? -- --------------------------------------------------------- Greg Hinton INET: hinton@netcom.uucp UUCP: ...!uunet!apple!netcom!hinton