Thread: command line agr

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    24

    Unhappy command line agr

    can some one give me some hints on how to convert command line arguments to long int's?

    Skeptic

  2. #2
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145

    Reply...

    long int atol(char* arg) //(array to long)

    Converts an array into a long int.

  3. #3
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    It is located in stdlib.h
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  4. #4
    Registered User
    Join Date
    Nov 2001
    Posts
    24

    thanks

    thanks for the help, much need

Popular pages Recent additions subscribe to a feed