getopt的() [英] getopt()

查看:65
本文介绍了getopt的()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

getopt()的正确格式是什么?它是如何工作的?我在手册页上看了

;它并没有真正澄清事情。什么是程序

使用它,也许我可以从中弄明白。


注意:这是关于主题的。 getopt是标准库的一部分。


Andrew Usher

What is the correct format of getopt() and how does it work? I looked
at the man page; it doesn''t really clarify things. What''s a program
that uses it, maybe I could figure it out from that.

Note: This is on-topic. getopt is part of the standard library.

Andrew Usher

推荐答案



[fups设为cp]


On Sun,2005年11月5日 k _ ********** @ yahoo.com 写道:

getopt()的正确格式是什么以及它是如何工作的?我在手册页上看了一下
;它并没有真正澄清事情。什么是使用它的程序
,也许我可以从中找到它。


男人3 getopt

(不一样)

男人getopt

注意:这是主题。 getopt是标准库的一部分。

What is the correct format of getopt() and how does it work? I looked
at the man page; it doesn''t really clarify things. What''s a program
that uses it, maybe I could figure it out from that.
man 3 getopt
(is not the same as)
man getopt
Note: This is on-topic. getopt is part of the standard library.




注意:getopt肯定是* NOT *标准库的一部分;我不知道你知道你知道的地方。与ISO标准C相关的问题,例如你的问题,应该被引导到一个他们将要讨论主题的小组,例如comp.programming,其中一个gnu。层次结构,或者也许是b $ b Linux编程组。


-Arthur



Note: getopt is certainly *NOT* part of the standard library; I don''t
know where you got that idea. Questions such as yours which are not
related to ISO standard C should be directed to a group where they''d be
on-topic, such as comp.programming, one of the gnu. hierarchy, or perhaps
a Linux programming group.

-Arthur


k _ ********** @ yahoo.com 写道:
k_**********@yahoo.com writes:
getopt是标准库的一部分。
getopt is part of the standard library.




不,不是。

-

......缺乏支持可能是一种美德。

它可以让业余爱好者休息。

- Bjarne Stroustrup



No it isn''t.
--
"...deficient support can be a virtue.
It keeps the amateurs off."
--Bjarne Stroustrup


Ben Pfaff写道:
Ben Pfaff wrote:
k _ ******* ***@yahoo.com 写道:
k_**********@yahoo.com writes:
getopt是标准库的一部分。
getopt is part of the standard library.



不,它不是'' t。



No it isn''t.




???它在libc中。也许它是特定于Unix的,但C是Unix。


Andrew Usher



??? It is in libc. Maybe it''s Unix-specific, but C is Unix.

Andrew Usher


这篇关于getopt的()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆