Thread: inverse of atoi, atof.....

  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    5

    Question inverse of atoi, atof.....

    Hi, does anybody knows any library function wich get a string as parameter and returns the corresponding integer or float or any numeric type ?
    I 'm working on Aix C plataform.

    Thanks in advance.

  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    look up in your favourite text,help files etc...

    atof()
    atoi()
    atol()
    atoll()
    strtod()
    strtof()
    strtol()
    and others too.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Having trouble with atoi
    By NewbGuy in forum C Programming
    Replies: 2
    Last Post: 05-22-2009, 11:55 PM
  2. Num to String? (atoi inverse)
    By hajas in forum C Programming
    Replies: 4
    Last Post: 06-22-2007, 03:22 PM
  3. problem with atof
    By ssharish in forum C Programming
    Replies: 17
    Last Post: 03-24-2005, 07:53 AM
  4. help with this
    By tyrantil in forum C Programming
    Replies: 18
    Last Post: 01-30-2005, 04:53 PM
  5. how do atof, atoi, and atol work?
    By jverkoey in forum C++ Programming
    Replies: 2
    Last Post: 04-24-2003, 09:25 PM