utime

    C / LINUX utime()

    함수 기능 파일의 최정 접근 시간과 최종 변경 시간을 변경하는 시스템 호출 함수 원형 utimebuf 구조 struct utimbuf { time_t actime;// 접근 시간 time_t modtime;// 수정 시간 }; #include #include int utime(const char *filepath, const struct utimbuf *time); 리턴 값 : 성공시 0 에러시 -1 함수 파라메터 filepath 대상 파일 경로 time 변경될 시간 함수 예제 #include #include #include #include #include #include int main(int argc, char *argv[]){ struct utimbuf time_buf; struct stat sta..