exer4.13.c(undone)
#include "apue.h"#include <sys/types.h>#include <utime.h>  int main(){  struct utimbuf tbuf;   // both type of tbuf.actime and time() is time_t,  // but why can't this assignment happen?  tbuf.actime = time();  tbuf.modtime = time();  if(utime("hello.c", &tbuf) < 0)    err_sys("utime error for hello.c"); }
            
 
作者:beanmoon            
 
出处:http://www.cnblogs.com/beanmoon/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接。
该文章也同时发布在我的独立博客中-豆月博客。
 
                     
                    
                 
                    
                
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号