컴파일러(개발환경)를 뭘 쓰시는 지요?
ANSI C 라이브러리 함수이기 때문에 도움말에 다 나오는 겁니다.
밥상도 차려드리고, 밥도 숟가락으로 떠먹여 드려야 하는지?
일단 떠 먹여드리죠. -_-;;
-------------------------------------------------------------------------------------------
Header File
time.h
Category
Time and Date Routines
Syntax
#include
time_t time(time_t *timer);
Description
Gets time of day.
time gives the current time, in seconds, elapsed since 00:00:00 GMT, January 1, 1970, and stores that value in the location pointed to by timer, provided that timer is not a NULL pointer.
Return Value
time returns the elapsed time in seconds.
------------------------------------------------------------------------------------------
그러니까 NULL 대신에 0을 쓴 겁니다.
질문을 올리기 전에 도움말이나 레퍼런스를 먼저 찾아보는 습관을 가지세요.
|