Re: string splitting plzzzzzz help me...



John J. Smith <jjs@xxxxxxxxxxxxxxxxx> wrote:
Hans Schneider wrote:

lc -ansic -A -shadows -unused -O -c strspl.c -o strspl.obj
Error strspl.c: 73 redefinition of 'wtof'
Error c:\lcc\include\stdlib.h: 55 Previous definition of 'wtof' here

Why is the implementation in question *defining* (rather than declaring)
things inside a standard header?

It's not -- the compiler's error messages are misleading.

(Out of curiosity, what is wtof() documented to be doing?)

Presumably, it's the wide character version of atof() -- it converts a
wide string to a double. It seems to be a Microsoftism, but recent
versions of MSC at least seem to spell it _wtof(), which avoids
polluting the user's namespace.

Why are your programs always not working with LCC-WIN32?

Because LCC-WIN32 doesn't conform to the C Standard in lots of little
ways. Whether that's due to ignorance, carelessness, or just
prioritization relative to other things, I'll leave to you to judge.

-- Larry Jones

Please tell me I'm adopted. -- Calvin
.



Relevant Pages

  • Re: string splitting plzzzzzz help me...
    ... Error strspl.c: 73 redefinition of 'wtof' ... Why are your programs always not working with LCC-WIN32? ... implementation is not allowed to declare it in. ...
    (comp.lang.c)
  • Re: string splitting plzzzzzz help me...
    ... Error strspl.c: 73 redefinition of 'wtof' ... Warning strspl.c: 73 inconsistent linkage for 'wtof' previously ... jacob at jacob point remcomp point fr ...
    (comp.lang.c)
  • Re: string splitting plzzzzzz help me...
    ... Error strspl.c: 73 redefinition of 'wtof' ... errors, 1 warning ... Why are your programs always not working with LCC-WIN32? ...
    (comp.lang.c)
  • Re: string splitting plzzzzzz help me...
    ... Error strspl.c: 73 redefinition of 'wtof' ... errors, 1 warning ... Why are your programs always not working with LCC-WIN32? ...
    (comp.lang.c)