standard unix graphics package
Moderator, John S. Quarterman
std-unix at longway.TIC.COM
Wed Oct 18 03:18:26 AEST 1989
From: uunet!dg-rtp.dg.com!dg-rtp!meissner (Michael Meissner)
In article <402 at longway.TIC.COM> kre at cs.mu.oz.au (Robert Elz) writes:
| In article <401 at longway.TIC.COM>, gwyn at 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 at dg-rtp.DG.COM have time for netnews?
Volume-Number: Volume 17, Number 33
More information about the Comp.std.unix
mailing list