ANSI C

heiser at tdw201.ed.ray.com heiser at tdw201.ed.ray.com
Tue Sep 18 22:04:56 AEST 1990


I'm taking a C course at Boston University -- we're supposed to be writing
in ANSI C.  I've run across a problem in getting so-called ANSI C things
to work (compile) across different architectures (I want to use my unix
machine at home (sysvr3, GCC) to do the development, then just compile
them at school on their machine (the T/A wants to be able to compile the
pgms there).  For example, I just ran into the following anomoly.  

The C books say to use "function prototypes" like this:

void functname(char arrayname[]);

This works fine when I compile it with GCC, and it also works on a
Harris GCX system running Sysvr3.  On the "Sequent" at school, though,
that function causes the compile to die a miserable death.

Should I be doing this some other way to make it work properly?  Anyone
here know anything about the ANSI compatibility of Sequents vs
Harris and/or GCC?  (It MUST be Ansi compatible, since they told us to
write ANSI code ... hmmm...)

Thanks in advance for your ideas on this.

Bill 



-- 
Work:    heiser at tdw201.ed.ray.com
	 {decuac,necntc,uunet}!rayssd!tdw201!heiser
Home(1): bill%unixland.uucp at world.std.com -or- uunet!world!unixland!bill
	 Public Access Unix Coming Soon!
Home(2): Bill.Heiser at f240.n322.z1.fidonet.org (BBS: 1-508-655-3848)
Other:	 heiser at world.std.com     (Pub. Access Unix)



More information about the Comp.unix.programmer mailing list