getopt()

This is a discussion on getopt() within the C Programming forums, part of the General Programming Boards category; How can I use the "--" options in getopt.() function.? Normally we gave "-" then character I used in my ...

  1. #1
    Registered User
    Join Date
    Jul 2009
    Posts
    5

    getopt()

    How can I use the "--" options in getopt.() function.?

    Normally we gave "-" then character I used in my program -h for usage. I want to use the --h for help page.

  2. #2
    Registered User
    Join Date
    Sep 2008
    Posts
    53
    i only know getopt function from here. Getopt Long Option Example - The GNU C Library

    there is a long options example which i linked to.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. getopt question
    By -EquinoX- in forum C Programming
    Replies: 5
    Last Post: 03-26-2009, 08:42 PM
  2. Case-insensitive getopt()
    By Ehtyar in forum C Programming
    Replies: 10
    Last Post: 11-20-2008, 02:21 AM
  3. getopt help
    By wuzzo87 in forum C Programming
    Replies: 12
    Last Post: 04-09-2007, 03:16 AM
  4. getopt and multiple options
    By bej in forum Linux Programming
    Replies: 2
    Last Post: 11-17-2005, 03:51 PM
  5. getopt() and weird output
    By kristy in forum C Programming
    Replies: 2
    Last Post: 06-28-2003, 04:39 PM

Tags for this Thread


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