+ Reply to Thread
Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: Reading Command Line Arguments

  1. #11
    Join Date
    Sep 2009
    Location
    USA
    Posts
    3,400
    Blog Entries
    5
    Rep Power
    37

    Re: Reading Command Line Arguments

    Thanks everyone
    Root Beer == System Administrator's Beer
    Download the new operating system programming kit! (some assembly required)

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many

     
  3. #12
    Join Date
    Aug 2009
    Location
    ~/
    Posts
    918
    Rep Power
    19

    Re: Reading Command Line Arguments

    Nice +rep

  4. #13
    Join Date
    Sep 2009
    Location
    USA
    Posts
    3,400
    Blog Entries
    5
    Rep Power
    37

    Re: Reading Command Line Arguments

    Thanks debtboy!
    Root Beer == System Administrator's Beer
    Download the new operating system programming kit! (some assembly required)

  5. #14
    Join Date
    Jul 2008
    Location
    Somewhere that is shorter to write than "In the gloomy shadows of my personal namespace"
    Posts
    10,725
    Blog Entries
    2
    Rep Power
    90

    Re: Reading Command Line Arguments

    Can't +rep you, but you did well!
    Hey! Check out my new Toyota keyboaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

  6. #15
    Join Date
    Sep 2009
    Location
    USA
    Posts
    3,400
    Blog Entries
    5
    Rep Power
    37

    Re: Reading Command Line Arguments

    Just remember me when you have spread it all around
    Root Beer == System Administrator's Beer
    Download the new operating system programming kit! (some assembly required)

  7. #16
    Join Date
    Nov 2009
    Location
    London
    Posts
    866
    Blog Entries
    3
    Rep Power
    14

    Re: Reading Command Line Arguments

    Great tutorial, definitley easy to read and understand for a total C noob like me.

    Great job + Rep!

  8. #17
    Join Date
    Sep 2009
    Location
    USA
    Posts
    3,400
    Blog Entries
    5
    Rep Power
    37

    Re: Reading Command Line Arguments

    Thanks James I'm glad I have helped you out.
    Root Beer == System Administrator's Beer
    Download the new operating system programming kit! (some assembly required)

  9. #18
    dcs
    dcs is offline Guru
    Join Date
    Mar 2008
    Posts
    775
    Rep Power
    23

    Re: Reading Command Line Arguments

    Quote Originally Posted by Guest View Post
    Any feedback is welcome.
    I just wanted to add this, from a C99 draft:

    If they are declared, the parameters to the main function shall obey the following constraints:
    • The value of argc shall be nonnegative.
    • argv[argc] shall be a null pointer.
    • If the value of argc is greater than zero, the array members argv[0] through argv[argc-1] inclusive shall contain pointers to strings, which are given implementation-defined values by the host environment prior to program startup. The intent is to supply to the program information determined prior to program startup from elsewhere in the hosted environment. If the host environment is not capable of supplying strings with letters in both uppercase and lowercase, the implementation shall ensure that the strings are received in lowercase.
    • If the value of argc is greater than zero, the string pointed to by argv[0] represents the program name; argv[0][0] shall be the null character if the program name is not available from the host environment. If the value of argc is greater than one, the strings pointed to by argv[1] through argv[argc-1] represent the program parameters.
    • The parameters argc and argv and the strings pointed to by the argv array shall be modifiable by the program, and retain their last-stored values between program startup and program termination.

  10. #19
    Join Date
    Sep 2009
    Location
    USA
    Posts
    3,400
    Blog Entries
    5
    Rep Power
    37

    Re: Reading Command Line Arguments

    Dude, do you spend your free time reading and reviewing the C standard?
    Root Beer == System Administrator's Beer
    Download the new operating system programming kit! (some assembly required)

+ Reply to Thread
Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. problem with command line arguments
    By csepraveenkumar in forum Java Help
    Replies: 1
    Last Post: 05-17-2011, 09:43 AM
  2. Command line arguments in DOS
    By Actor in forum Computer Software/OS
    Replies: 0
    Last Post: 05-18-2010, 12:57 AM
  3. Command Line Arguments
    By whitey6993 in forum C Tutorials
    Replies: 0
    Last Post: 04-04-2010, 12:57 PM
  4. [X86 ASM] Command line arguments demo
    By Sysop_fb in forum Classes and Code Snippets
    Replies: 0
    Last Post: 02-12-2010, 07:38 AM
  5. Reading Command line arguments in VB.NET
    By Vswe in forum Visual Basic Tutorials
    Replies: 2
    Last Post: 06-06-2009, 06:46 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts