摘要:        
描述 popen() 函数 用 创建管道 的 方式启动一个 进程, 并调用 shell. 因为 管道是被定义成单向的, 所以 type 参数 只能定义成 只读或者 只写, 不能是 两者同时, 结果流也相应的 是只读 或者 只写.command 参数 是 一个 字符串指针, 指向的是一个 以 null...    阅读全文
        
            posted @ 2013-07-30 09:56
毛毛虫的薄刻
阅读(180)
评论(0)
推荐(0)
        
        
            
        
        
摘要:        
int snprintf(char *restrict buf, size_t n, const char * restrict format, ...);函数说明:最多从源串中拷贝n-1个字符到目标串中,然后再在后面加一个0。所以如果目标串的大小为n 的话,将不会溢出。函数返回值:若成功则返回欲写...    阅读全文
        
            posted @ 2013-07-30 09:36
毛毛虫的薄刻
阅读(127)
评论(0)
推荐(0)
        
        
            
        
        
摘要:        
文件#include 函数原型int getopt_long(int argc, char * const argv[],const char *optstring,const struct option *longopts, int *longindex);函数说明getopt被用来解析命令行选项...    阅读全文
        
            posted @ 2013-07-30 09:33
毛毛虫的薄刻
阅读(141)
评论(0)
推荐(0)
        
        
                    
                
浙公网安备 33010602011771号