Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!wuarchive!udel!burdvax!ubbpc!wgh From: wgh@ubbpc.UUCP (William G. Hutchison) Newsgroups: comp.sys.transputer Subject: Re: Compiler put on server Summary: Nonportable sprintf() in compiler source Message-ID: <765@ubbpc.UUCP> Date: 4 Dec 90 15:45:59 GMT References: <9012031519.AA11198@theory.TN.CORNELL.EDU> Organization: Unisys UNIX Portation Center, Blue Bell, PA Lines: 31 In article <9012031519.AA11198@theory.TN.CORNELL.EDU>, K312240@AEARN.BITNET (Klaus Kusche) writes: > > Dear Transputer Mailing List: > > For those of you who can't FTP and didn't receive the compiler when it > was mailed on the list, I've put it onto a file server. [ ... > ... see earlier post for details (WGH) ] > > Unfortunately, this is the version where all | (vertical bar) > mutated into : (colon). > > Enjoy! > Sorry, but I am still not enjoying this. I have fixed all the ':' problems that my K&R C compiler can find, but the source code is still wrong. For example, decl.c has declarations and usage of sprintf that require it to return char * (as if it returned the result string passed in as its first argument). But this appears to be wrong: my 'man' pages and my ANSI C guide both say that sprintf returns an int. Was this compiler written for UNIX? I am not convinced that anybody has ever compiled or run it on UNIX or any other conventional implementation of C. -- Bill Hutchison, DP Consultant rutgers!cbmvax!burdvax!ubbpc!wgh (work) Unisys UNIX Portation Center uunet!eidolon!wgh (home) P.O. Box 500, M.S. B121 "At the moment I feel more like arguing than Blue Bell, PA 19424 being good" Raymond Smullyan _The Tao is Silent_