QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1129|回复: 3

有谁知道[option]选项是怎么实现的?

[复制链接]
发表于 2003-10-24 10:28:26 | 显示全部楼层 |阅读模式
如 rm -irv filename
中的 -irv 实现的机制,程序如何解释-o选项的?有什么系统调用能够让自己的程序实现此功能?谢谢,是不是popt系统调用?如何用了?谢了
发表于 2003-10-24 19:11:14 | 显示全部楼层
use getopt_long(...) /*#include <getopt.h>*/

u can find more information in <advanced linux programming>
"chapter 2 ,writing good gnu/linux software"

if u does not have it,i can mail u.
回复

使用道具 举报

 楼主| 发表于 2003-10-24 20:48:14 | 显示全部楼层
my email:[email protected]
3ks
回复

使用道具 举报

发表于 2003-10-24 22:12:44 | 显示全部楼层
this is user space problem, glibc., sigh
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-9-28 04:21 , Processed in 0.055149 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表