Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!mcvax!botter!ark!smagt From: smagt@cs.vu.nl (Smagt v der PPP) Newsgroups: comp.os.minix Subject: how to make scanf() work Message-ID: <1008@ark.cs.vu.nl> Date: Mon, 11-May-87 07:10:53 EDT Article-I.D.: ark.1008 Posted: Mon May 11 07:10:53 1987 Date-Received: Wed, 13-May-87 07:18:04 EDT Organization: V.U. Informatica, Amsterdam, the Netherlands Lines: 15 Keywords: libc.a In my distribution of MINIX, the C library routine scanf() doesn't work. When compiling, I get something like "_getc undefined". Obviously, this is a library error. I found that in the file libc.a in the /usr/lib directory, scanf() is listed AFTER getc(). This is no good, says prof. Tanenbaum in appendix D. I fixed it by putting scanf() at the top in libc.a. This proved to be a lot of work because tar can only insert files at the end of the library file. Any volunteers to change tar (see UNIX manuals) ? P. van der Smagt VU Informatica Amsterdam The Netherlands (send mail to smagt@cs.vu.nl)