Convert Linux code to Windows

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ose

    Convert Linux code to Windows

    How to convert the "while" stetement in the following code from Linux to run
    on Windows?

    while((c= getopt(argc, argv, "i:o:x:c:lk h")) != -1)
    {
    switch(c)
    {
    case 'g':
    ...
    case 'h'
    ...
    default: break;
    }
    }


  • Martien Verbruggen

    #2
    Re: Convert Linux code to Windows

    On Sun, 28 Sep 2008 03:21:19 GMT,
    ose <ose29@hotmail. comwrote:
    How to convert the "while" stetement in the following code from Linux to run
    on Windows?
    I'm assuming that your real question is where to get a copy of getopt
    that you can use on windows?

    You should probably ask this on a windows group, or maybe one specific
    even to your compiler, because it might already be included in there
    somewhere. For example in the cygwin environment on windows it's
    available.

    Failing that, there are many free implementations of getopt available
    online. If you search in Google for

    getopt implementation windows

    many interesting links pop up. The third one, at bytes.com, looks the
    most promising.

    Have you tried Google yet? it's pretty useful for these sorts of things.

    Martien
    --
    |
    Martien Verbruggen |
    | Hi, Dave here, what's the root password?
    |

    Comment

    Working...