摘要:
参考:http://www.gnu.org/software/libc/manual/html_node/Example-of-Getopt.htmlhttp://en.wikipedia.org/wiki/Getopthttp://www.lemoda.net/c/getopt/http://www.ibm.com/developerworks/aix/library/au-unix-getopt.htmlhttp://stackoverflow.com/questions/16483119/example-of-how-to-use-getopt-in-bashExample of Par 阅读全文
摘要:
参考:http://www.360doc.com/content/12/0309/10/4025635_192940551.shtmlhttp://www.cnblogs.com/AnnieKim/archive/2011/11/25/ellipsis.htmlhttp://intijk.com/others/va_list-%E7%9A%84%E7%94%A8%E6%B3%95.html如何获取函数的变长参数(va_list, va_start, va_arg, va_end)最近在花时间研读C++。函数这章讲到了函数的变长参数(ellipsis...),但是primer中讲得比较浅,提到了 阅读全文
摘要:
转:http://blog.csdn.net/wqc02/article/details/89301841.根文件系统简介...22.Busybox简介...22.1Busybox简介...22.2Busybox目录结构简介...22.3init进程简介...33.构建自己的根文件系统...93.1编译Busybox.93.2向Busybox中添加新命令...194.附录...264.1Busybox实现的简单分析...264.2Busybox配置选项说明...27 .根文件系统简介所谓制作根文件系统,就是创建各种目录,并且在目录里创建相应的文件。例如:在/bin目录下放置... 阅读全文
摘要:
http://www.cnpaf.net/Class/Telnet/ 阅读全文
摘要:
转:http://stackoverflow.com/questions/1022957/getting-terminal-width-in-c方法一:#include #include int main (void){ struct winsize w; ioctl(0, TIOCGWINSZ, &w); printf ("lines %d\n", w.ws_row); printf ("columns %d\n", w.ws_col); return 0;}方法二:#include #include #include #include sta 阅读全文