什么是argp和getopt的区别? [英] What's the difference between argp and getopt?
本文介绍了什么是argp和getopt的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我觉得冠军是自我解释。我想提出一个计划,我想知道我应该用什么两个和为什么。
I think the title is self explanatory. I am making a program and I was wondering what I should use of the two and why.
推荐答案
argp
可能更灵活/强大/等,但 getopt的
是POSIX标准的一部分。那是为了使基于不管你是否希望你的程序可以移植你已经选择。
argp
may be more flexible / powerful / etc, but getopt
is part of the POSIX standard. Thats a choice you've to make based on whether you expect your program to be portable.
这篇关于什么是argp和getopt的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文