problem with cc compiler
Steve Lamont
spl at mcnc.org
Mon Jul 24 22:25:26 AEST 1989
In article <10594 at smoke.BRL.MIL> gwyn at brl.arpa (Doug Gwyn) writes:
>In article <1185 at fcs280s.ncifcrf.gov> kml at ncifcrf.gov (Kevin Lahey) writes:
>>I just don't quite see how to insure that a regular function declaration
>>doesn't override a library function. Assuming that this magic system works
>>(I don't doubt that it does), how can one override a library function when
>>desired?
>
>A standard-conforming implementation is not allowed to call functions
>other than those specified as being in the standard library and others
>(primarily with names beginning with underscore) that are specifically
>reserved for the implementation by the Standard. read() is an example
>of a function that a conforming C implementation must permit applications
>to use for their own purposes.
Based upon this information, I have a couple of questions.
Suppose that I wish to implement my own math library function, say sin() or
cos(), for whatever reason, in a large pre-existing piece of code that I don't
want to fiddle too much with. How would I do this, then?
Also, what provision is there for overriding this stricture, if, for instance,
I am assigned the task of rebuilding a standard library? Is the compiler
going to refuse to let me write my own read() function then, too?
--
spl
Steve Lamont, sciViGuy EMail: spl at ncsc.org
North Carolina Supercomputing Center Phone: (919) 248-1120
Box 12732/RTP, NC 27709
More information about the Comp.lang.c
mailing list