Results 1 to 3 of 3

Thread: String into Long

  1. #1
    Contributing Member
    Join Date
    May 2006
    Answers
    85

    String into Long

    Like string can be converted to integer using atoi() function is it possible to convert strings into long . If so how to do this? Is there a predefined function available for doing this?


  2. #2
    Contributing Member
    Join Date
    May 2006
    Answers
    71

    Re: String into Long

    It is very well possible to convert string into long using predefined function available in C namely atol(). But I am not aware of the header file in which this function is present. Can someone say me about this.


  3. #3
    Contributing Member
    Join Date
    Jul 2006
    Answers
    93

    Thumbs up Re: String into Long

    These functions namely atoi(), atol() are present header files namely stdlib.h. So one has to add the statement namely
    #include <stdlib.h> while using these functions.
    Hope this clarifies your query


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact