Thread: "itoa"-"_itoa" , "inp"-"_inp", Why some functions have "

  1. #1
    Registered User
    Join Date
    Sep 2002
    Posts
    88

    "itoa"-"_itoa" , "inp"-"_inp", Why some functions have "

    "itoa"-"_itoa" , "inp"-"_inp"

    Why some functions have "_" before??

    What does the "_" mean?

  2. #2
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    The primary purpose of the underscore is to differentiate multiple functions that serve do something to similar datatype such as char and TCHAR. The same concept goes for different platforms.

    Kuphryn

  3. #3
    Registered User
    Join Date
    Sep 2002
    Posts
    88
    Originally posted by kuphryn
    The primary purpose of the underscore is to differentiate multiple functions that serve do something to similar datatype such as char and TCHAR. The same concept goes for different platforms.

    Kuphryn
    ER.......


    but i look in the MSDN that the arg.s of "_itoa" and "itoa", "inp" and "_inp" are the same type and the same names .

    why ????

  4. #4
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    There are macros that process different datatypes.

    Kuphryn

  5. #5
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    Lots of times you'll see two underscored preceding a function name. Becareful for this is these are the infamous "Microsoft Extensions" and are not standard. Example.

    Code:
    __forceinline

  6. #6
    Registered User
    Join Date
    Sep 2002
    Posts
    88
    THX

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Static member functions more efficient?
    By drrngrvy in forum C++ Programming
    Replies: 6
    Last Post: 06-16-2006, 07:07 AM
  2. Passing pointers between functions
    By heygirls_uk in forum C Programming
    Replies: 5
    Last Post: 01-09-2004, 06:58 PM
  3. Attaching functions to a class/struct
    By VirtualAce in forum Tech Board
    Replies: 2
    Last Post: 08-04-2003, 10:56 AM
  4. Expression Manipulator v0.2 (bug fixes, functions)
    By ygfperson in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 05-26-2003, 04:52 PM
  5. API "Clean Up" Functions & delete Pointers :: Winsock
    By kuphryn in forum Windows Programming
    Replies: 2
    Last Post: 05-10-2002, 06:53 PM