Thread: Command Line Argument Parsing

  1. #1
    Registered User
    Join Date
    Jan 2003
    Posts
    88

    Command Line Argument Parsing

    Hi. I'm looking for a library to aid in parsing command line arguments on Windows. Does anybody know of such a thing? The GNU getopt library would be an example but that does not run on Windows. I'm using Visual C++ 6.0 (SP6). Thanks in advance.

  2. #2
    Registered User
    Join Date
    Sep 2004
    Posts
    44

  3. #3
    Registered User
    Join Date
    Jan 2003
    Posts
    88
    As far as I see, that will just retrieve the command line string. What I want is something like getopt() which will help me parse this string.

  4. #4
    Dump Truck Internet valis's Avatar
    Join Date
    Jul 2005
    Posts
    357
    search google for getopt.c getopt.h and tailor.h, it compiles fine under my development environment, it runs without error:
    Microsoft Visual Studio .NET 2003
    Latest sdk

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. member as default argument
    By MarkZWEERS in forum C++ Programming
    Replies: 2
    Last Post: 03-23-2009, 08:09 AM
  2. getopt - parsing string as argument
    By bertazoid in forum C Programming
    Replies: 13
    Last Post: 02-05-2009, 04:35 PM
  3. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  4. Nested loop frustration
    By caroundw5h in forum C Programming
    Replies: 14
    Last Post: 03-15-2004, 09:45 PM
  5. I hate string parsing with a passion
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 03-19-2002, 07:30 PM