Article View: comp.std.unix
Article #83Re: standard unix graphics package
From: Robert Elz
Date: Thu, 19 Oct 1989 16:19
Date: Thu, 19 Oct 1989 16:19
36 lines
1848 bytes
1848 bytes
From: uunet!munnari!cs.mu.oz.au!kre (Robert Elz) > From: uunet!dg-rtp.dg.com!dg-rtp!meissner (Michael Meissner) > | In article <401@longway.TIC.COM>, gwyn@BRL.MIL quotes someone: > | > >1) my code be written in C > | > > b) portable to ALL UNIX SYSTEMS > You still lose. Under ANSI C the above program is not valid, since > printf is a varargs function that has no prototype in scope. Nowhere does it mention ANSI C. What's more, its clearly impossible to meet the requirements if ANSI C is required, since not ALL Unix systems have ANSI C compilers... > While we are at it, main should return a valid exit status. No quibbles there, though its not needed for the program to run. > #include <stdio.h> You just blew it away, it was no accident that I didn't include stdio.h .. 6th edition unix (v6) and previous had no stdio.h (until the 6th edition stdio upgrade). Your program no longer runs (even compiles) on ALL versions of unix. And OK, I admit it, neither does mine, since I don't think there ever was a C compiler for 1st edition (PDP-7) unix. If you want to get this technical (and I see no reason not to, given the absurd requirements laid out by the professor who set this assignment) there is truly no possible solution. kre Volume-Number: Volume 17, Number 35
Technical Details
Message-ID:
<405@longway.TIC.COM>Path:
arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!longway!std-unixReferences:
<400@longway.TIC.COM> <401@longway.TIC.COM> <402@longway.TIC.COM> <403@longway.TIC.COM>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!longway!std-unix From: kre@cs.mu.oz.au (Robert Elz) Newsgroups: comp.std.unix Subject: Re: standard unix graphics package Message-ID: <405@longway.TIC.COM> Date: 19 Oct 89 16:19:56 GMT References: <400@longway.TIC.COM> <401@longway.TIC.COM> <402@longway.TIC.COM> <403@longway.TIC.COM> Sender: std-unix@longway.TIC.COM Reply-To: kre@cs.mu.oz.au (Robert Elz) Lines: 36 Approved: jsq@longway.tic.com (Moderator, John S. Quarterman)