Re: calling my custom function same as library function

From: Walter Roberson (roberson_at_ibd.nrc-cnrc.gc.ca)
Date: 02/28/05


Date: 28 Feb 2005 03:53:36 GMT

In article <ut45219dpns6m5cmv5dlgtkfdpdlm1tfdi@4ax.com>,
Jack Klein <jackklein@spamcop.net> wrote:
:According to the C standard, it is neither portable nor acceptable to
:use the name of a library function in a context where it has external
:linkage.

That does not sound right. Every library function has external linkage
relative to the user code.

-- 
   I don't know if there's destiny,
   but there's a decision!                  -- Wim Wenders (WoD)


Relevant Pages

  • Re: pass by reference
    ... "Jack Klein" wrote in message ... > undefined behavior to write a function that has the same as a standard ... > library function. ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Problem 77: Greedy Gift Givers
    ... Keith Thompson wrote: ... Like any other library function, it must be provided as a function. ... it's unspecified whether setjmp is an identifier declared ... with external linkage, which gives it scope to be a library function ...
    (comp.lang.c)
  • Re: stdout not open?
    ... writes to stdout, this shows that the stream is open and is ... standard output stream or does `stdout' get replaced by ... Standard library function, for that matter?) ...
    (comp.lang.c)
  • Re: So what Standard are we working off?
    ... exactly 32 bits, all integers are 2s complement, right shift retains ... with that "de facto standard". ... Any library function which takes multiple pointers __assumes ... compiler could legally ignore it altogether (as long as it recognizes ...
    (comp.lang.c)
  • Re: need the file size via windows
    ... snip ... ... >> I was not proposing a general utility or library function that ... >> fairly standard question with a standard answer. ... unnecessary bug reports in comp.compilers.lcc, ...
    (comp.lang.c)