Results 1 to 2 of 2

Thread: itoa() vs. _itoa()

  1. #1

    Thread Starter
    Fanatic Member Wynd's Avatar
    Join Date
    Dec 2000
    Location
    In a bar frequented by colossal death robots
    Posts
    772

    itoa() vs. _itoa()

    What's the difference? I have seen itoa() in some places, and other places (like the FAQ, for instance), I see _itoa. Same with atoi() and _atoi().
    Alcohol & calculus don't mix.
    Never drink & derive.

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    The standard form of C name mangling (for the __cdecl ("C Calling Convention") calling convention, which is usually the default, unless you changed your project settings) is simply to prepend an underscore.

    Interoperability between C and C++ means that the names sometimes get a bit messed up, so nobody knows what works and what doesn't. Basically, just use whichever one works - it'll resolve to the same code in the library.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width