I learning about some basic C functions and have encountered time(NULL) in some manuals.
What exactly does this mean?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can pass in a pointer to a
time_tobject thattimewill fill up with the current time (and the return value is the same one that you pointed to). If you pass inNULL, it just ignores it and merely returns a newtime_tobject that represents the current time.