Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!ginosko!uunet!longway!std-unix From: std-unix@longway.TIC.COM (Moderator, John S. Quarterman) Newsgroups: comp.std.unix Subject: Re: standard unix graphics package Message-ID: <403@longway.TIC.COM> Date: 17 Oct 89 17:18:26 GMT References: <400@longway.TIC.COM> <401@longway.TIC.COM> <402@longway.TIC.COM> Reply-To: uunet!dg-rtp.dg.com!dg-rtp!meissner (Michael Meissner) Organization: Data General (Languages @ Research Triangle Park, NC.) Lines: 49 Approved: jsq@longway.tic.com (Moderator, John S. Quarterman) From: uunet!dg-rtp.dg.com!dg-rtp!meissner (Michael Meissner) In article <402@longway.TIC.COM> kre@cs.mu.oz.au (Robert Elz) writes: | In article <401@longway.TIC.COM>, gwyn@BRL.MIL quotes someone: | > >1) my code be written in C | > >2) the use of graphics | > >3) that the final version be | > > a) UNIX-based | > > b) portable to ALL UNIX SYSTEMS | | and then says .. | | > Wow, taken literally this would be EXTREMELY TOUGH. | | No, taken literally, this would be very easy. Written in | C is no problem. Unix based is no problem, portable to | all unix systems is easy if the result is simple enough. | | Graphics seems to be the complication, but remember, that "literally" | characters are graphics, so why not try submitting ... | | main() | { | printf("Hello world\n"); | } | | which I believe literally meets all the (stated) requirements. You still lose. Under ANSI C the above program is not valid, since printf is a varargs function that has no prototype in scope. While we are at it, main should return a valid exit status. Ok, the revised program is: #include main() { printf("Hello world\n"); return 0; } -- Michael Meissner, Data General. If compiles where much Uucp: ...!mcnc!rti!xyzzy!meissner faster, when would we Internet: meissner@dg-rtp.DG.COM have time for netnews? Volume-Number: Volume 17, Number 33