getting cmd line options

This is a discussion on getting cmd line options within the C Programming forums, part of the General Programming Boards category; Is the getopt.c file from GNU a fully portable C source file to use even in a platform that it's ...

  1. #1
    Registered User trekker's Avatar
    Join Date
    Mar 2002
    Posts
    46

    getting cmd line options

    Is the getopt.c file from GNU a fully portable C source file
    to use even in a platform that it's not in its std C lib ( e.g. UNIX )?

    If not could you suggest a platform independent getopt.c
    file ?

    Sorry, for not having the time to test it myself...
    to boldy code where...

  2. #2
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    There's some details here
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  3. #3
    Registered User trekker's Avatar
    Join Date
    Mar 2002
    Posts
    46
    well, it's a good FAQ
    but i didn't find my answer there.

    I managed to compile GNU getopt.c file with minor
    modifications.

    thanks anyway
    to boldy code where...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Very strange error...
    By Blackroot in forum C++ Programming
    Replies: 2
    Last Post: 12-14-2006, 12:37 AM
  2. Move the Caret to a line
    By TheDan in forum Windows Programming
    Replies: 3
    Last Post: 08-07-2005, 12:59 PM
  3. Trouble replacing line of file
    By Rpog in forum C Programming
    Replies: 4
    Last Post: 04-19-2004, 10:22 AM
  4. Read only one line using seekg
    By RedZippo in forum C++ Programming
    Replies: 3
    Last Post: 03-31-2004, 10:10 PM
  5. Contest Results - May 27, 2002
    By ygfperson in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 06-18-2002, 01:27 PM

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