From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,2afd440a210c7fb0 X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,df8a3dc583bf1f5f X-Google-Attributes: gid1164f8,public X-Google-Thread: 1014db,6bdc5c27a0dec527 X-Google-Attributes: gid1014db,public From: JF Mezei Subject: Re: Compaq prefers Alpha over Merced! BUT OF COURSE, ALPHA * Date: 1998/08/30 Message-ID: <35E9DAA0.8097B24F@videotron.ca>#1/1 X-Deja-AN: 386260795 Content-Transfer-Encoding: 7bit References: <0095000017115526000002L062*@MHS> <6s910k$2bo$1@Starbase.NeoSoft.COM> <35e833be.0@news.wizvax.net> <6sac4v$4ti$1@Starbase.NeoSoft.COM> <35e8f9d7.0@news.wizvax.net> Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@videotron.net X-Trace: weber.videotron.net 904517806 207.96.131.160 (Sun, 30 Aug 1998 18:56:46 EDT) MIME-Version: 1.0 NNTP-Posting-Date: Sun, 30 Aug 1998 18:56:46 EDT Newsgroups: comp.os.vms,comp.sys.dec,comp.lang.c John Wilson wrote: > I don't have the C Standard in hand either but it certainly seems like it > would be mighty presumptuous of the compiler to inline library calls unless > it first sees the right "#include <>" statements for those libraries, until > that point it can't be sure that it's really a library call as opposed to > some user-written function of the same name. There is no difference between a library call and a user-written function. I once worked on a project where a hacker had created his own libraries that redefined all the standard C routines (printf etc etc). The *LINKER* what what resolves the references to routines. In the old VAX-C, you had to specify the vaxcrtl.exe runtime if you want access to the "standard" C routines. #includes only serve to redefine stuff (this includes macro expansion). The K&R book is full of references to the fact that the ***C COMPILER*** generates strings that are null terminated as this is the convention for the C language. Evidently, the C library routines expect strings that abide by that convention. And as far as french fries are concerned, it is a bad example to associate them with ketchup. In canada, salt and vinagar is popular, in France, it is mayonaise. In Australia, it is tomato sauce.