Discussion:
getopt function
(too old to reply)
wjr
2007-02-02 22:11:12 UTC
Permalink
We are looking to do a port of our software which runs on Solaris. Is
there a supported getopt? By supported, I mean by MS. If not, what
would be a good second choice.

We really don't want to change many hundreds of programs just for this....
Brian Muth
2007-02-02 22:19:51 UTC
Permalink
Post by wjr
We are looking to do a port of our software which runs on Solaris. Is
there a supported getopt? By supported, I mean by MS. If not, what would
be a good second choice.
I don't think so, but I'm not a expert in this area. I believe gcc does
support it, and I'm wondering if that might be a better choice for you.

Brian
Brian Muth
2007-02-02 22:26:11 UTC
Permalink
Check this out: http://www.cygwin.com/

Brian
Igor Tandetnik
2007-02-02 22:32:11 UTC
Permalink
Post by wjr
We are looking to do a port of our software which runs on Solaris. Is
there a supported getopt? By supported, I mean by MS. If not, what
would be a good second choice.
No, I don't know of any command line parsing facility from MS comparable
to getopt.

There are open source implemenations of getopt, e.g.

http://www.gnu.org/software/libc/manual/html_node/Getopt.html
http://www.codeproject.com/cpp/xgetopt.asp
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
Dr Pizza
2007-02-07 21:50:20 UTC
Permalink
Post by wjr
We are looking to do a port of our software which runs on Solaris.
Is there a supported getopt? By supported, I mean by MS. If not,
what would be a good second choice.
We really don't want to change many hundreds of programs just for this....
No, there isn't. There are plenty of BSD-licensed getopt()s floating
around, though, and they would be a good place to start, seeing as they
are essentially free to use for any purpose.

--
wjr
2007-02-08 20:23:26 UTC
Permalink
Post by wjr
We are looking to do a port of our software which runs on Solaris. Is
there a supported getopt? By supported, I mean by MS. If not, what
would be a good second choice.
We really don't want to change many hundreds of programs just for this....
We just grabbed one of the existing ones and modified it. So everything
is cool.
Neo Cambell
2010-12-01 16:13:16 UTC
Permalink
I found a nice getopt function for VC. See http://www.expertcore.org/viewtopic.php?f=8&t=2129. I checked and it works fine.
Post by wjr
We are looking to do a port of our software which runs on Solaris. Is
there a supported getopt? By supported, I mean by MS. If not, what
would be a good second choice.
We really don't want to change many hundreds of programs just for this....
I do not think so, but I am not a expert in this area. I believe gcc does
support it, and I am wondering if that might be a better choice for you.
Brian
Post by Brian Muth
Check this out: http://www.cygwin.com/
Brian
Post by Igor Tandetnik
No, I don't know of any command line parsing facility from MS comparable
to getopt.
There are open source implemenations of getopt, e.g.
http://www.gnu.org/software/libc/manual/html_node/Getopt.html
http://www.codeproject.com/cpp/xgetopt.asp
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
Post by Dr Pizza
No, there isn't. There are plenty of BSD-licensed getopt()s floating
around, though, and they would be a good place to start, seeing as they
are essentially free to use for any purpose.
--
Post by wjr
We just grabbed one of the existing ones and modified it. So everything
is cool.
Submitted via EggHeadCafe
Custom task processes in SharePoint Designer Workflows
http://www.eggheadcafe.com/tutorials/aspnet/872c3a54-cc00-4fa0-b98b-2e9ea9a559dd/custom-task-processes-in-sharepoint-designer-workflows.aspx
Loading...