Header file strings.h

Michael Meissner meissner at dg_rtp.UUCP
Fri Jun 27 01:25:09 AEST 1986


In article <240 at killer.UUCP> tad at killer.UUCP (Tad Marko) writes:
>
>I use the functions quite often, but the header file for MSC is string.h.
>I recently ported a program from MSC to an NBI 4044 running 4.2BSD, and the
>only change necessary was to change 
>
>#include <string.h>
>
>to
>
>#include <strings.h>
>
>everything worked fine after that.  Perhaps this and several other MSC 
>differences are the result of it complying to the new ANSI C standard?

    It goes back a little further than ANSI & BSD.  In the ongoing war
to make System V & BSD mutually incompatible {1/2 -) I guess}, BSD systems
define the string functions in <strings.h>, and System V (and probably
System III before it) use <string.h>.  The ANSI committee started with
one of the /usr/group working documents.  The /usr/group standard was
originally based upon System III.  The time line looks somewhat like:

	v7
	|\
	| \-----------------------------------------------------\
	|							|
	System III-----\					BSD 4.1
	|		\					|
	|		/usr/group starts-------\		BSD 4.1{a,b,c}
	|		|			|		|
	System V\	|			ANSI starts	|
	|	|	|			|		BSD 4.2
	|	|	/usr/group 1st std.	|		|
	|	|	|			|		|
	|	\-------/usr/group continues	|		|
	|		|			|		|
	System V.2	becomes IEEE P1003	issues 4/30/85 	|
	|		|			public bulletin	|
	SVID----\	|			|		|
	|	|	issues P1003.1		|		|
	|	X/OPEN	|			|		|
present	...		...			...		...
	|		|			|		|
future	System V.3	revisied std?		public review	BSD 4.3
	(ships?)				(Sept 1986?)	(ships?)


* Note, the time line is distorted somewhat.

	Michael Meissner
	Data General
	...{ decvax, ucbvax, inhp4 }!mcnc!rti-sel!dg_rtp!meissner



More information about the Comp.lang.c mailing list