Article View: comp.std.unix
Article #81Re: standard unix graphics package
From: Moderator, John S. Quarterman
Date: Tue, 17 Oct 1989 17:18
Date: Tue, 17 Oct 1989 17:18
49 lines
2067 bytes
2067 bytes
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 <stdio.h>
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
Technical Details
Message-ID:
<403@longway.TIC.COM>Path:
arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!ginosko!uunet!longway!std-unixReferences:
<400@longway.TIC.COM> <401@longway.TIC.COM> <402@longway.TIC.COM>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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)