command line agr

This is a discussion on command line agr within the C++ Programming forums, part of the General Programming Boards category; can some one give me some hints on how to convert command line arguments to long int's? Skeptic...

  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

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