file_time(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

🌸 NAME 🌸

okay bestie, welcome to the Allegro manual page for file_time(3) β€” yes, the Allegro game programming library one. πŸ’–

file_time β€” Returns the modification time of a file. Allegro game programming library.


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <allegro.h>

time_t file_time(const char *filename);

πŸ’… DESCRIPTION πŸ’…

So literally, this function returns the modification time of a file β€” and that time is the number of seconds since 00:00:00 GMT 1/1/1970. iconic timestamp energy, no cap. ⏰✨

But bestie, listen: if the file does not exist or an error occurs, it will return zero and store the system error code in errno. so if you get a zero, don't just vibe β€” go check errno, fr fr. πŸ˜­πŸ’€


πŸ‘‘ SEE ALSO πŸ‘‘

file_exists(3), file_size_ex(3)


later bestie!! this was Allegro version 4.4.3, and the page is file_time(3) β€” mwah πŸ’‹πŸ«Ά

πŸ“¦ where this page comes from