strtol(), strtod() ?

This is a discussion on strtol(), strtod() ? within the C Programming forums, part of the General Programming Boards category; Can somebody please tell me more about theses two functions...what they do, and how do you use them, for what... ...

  1. #1
    Registered User
    Join Date
    Jun 2002
    Posts
    12

    Question strtol(), strtod() ?

    Can somebody please tell me more about theses two functions...what they do, and how do you use them, for what...

    Thank you
    HOWY

  2. #2
    Registered User The Dog's Avatar
    Join Date
    May 2002
    Location
    Cape Town
    Posts
    788
    strtod(): Convert strings to a double-precision value.

    strtol(): Convert strings to a long-integer value.

    Parameters

    nptr

    Null-terminated string to convert

    endptr

    Pointer to character that stops scan

    base

    Number base to use

  3. #3
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Why not look them up in the manual.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem with strtod
    By robert777 in forum C Programming
    Replies: 11
    Last Post: 11-03-2008, 12:49 PM
  2. strtol() is the only way?
    By Mario F. in forum C++ Programming
    Replies: 5
    Last Post: 06-07-2006, 03:32 PM
  3. How does strtod manage to parse?
    By seedpress in forum C Programming
    Replies: 4
    Last Post: 03-23-2005, 06:03 PM
  4. More strtod troubles
    By Bajanine in forum Windows Programming
    Replies: 2
    Last Post: 03-09-2003, 01:23 PM
  5. Help with strtod and fgets..
    By Gugge in forum C Programming
    Replies: 2
    Last Post: 05-15-2002, 03:21 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21