Path: utzoo!attcan!uunet!munnari!otc!metro!pta!teti!nswitgould!nick
From: nick@nswitgould.OZ (Nick Andrew)
Newsgroups: comp.os.minix
Subject: Minor corrections to v1.3 library
Keywords: 1.3 stdio.h bugs
Message-ID: <8968@nswitgould.OZ>
Date: 14 Jul 88 13:42:56 GMT
Organization: Comp Sci, NSWIT, Australia
Lines: 21


	On the whole, the 1.3 updates have been very clean, but there are
a few very minor corrections which I think need to be made.

	Brucee mentioned fopen.c required  in its head. That, or
"lib.h" will suffice.

	message.c has an initialisation of a union which the compiler (1.1
at least) doesn't like. Fixed in 1.2? Removed ' = {0}'.

	 is altered so getc and putc are now macros. This is
correct (even if they do simply expand to fgetc). Now, the source files
getc.c and putc.c should be renamed to fgetc.c and fputc.c and the function
names within changed to fgetc and fputc. This is a trap for the beginner,
searching for the string 'fgetc' in the library when it's not there.

	ctime.c declares a static char *buf[xxx] and the 'static' is ignored
by the compiler (1.1 at least). Fixed in 1.2? Some programs like to use buf
as an external variable so I changed buf to be static within the function.

	Regards to all, Nick.