File creation time is not stored anywhere,
You can only retrieve one of the following:
time_t st_atime; /* time of last access */
time_t st_mtime; /* time of last modification */
time_t st_ctime; /* time of last status change */
You can use below program to get st_ctime.
#include<stdio.h>
#include<sys/types.h>
#include<sys/stat.h>
int main(int argc, char *argv[])
{
struct stat st;
size_t i;
for( i=1; i<argc; i++ )
{
if( stat(argv[i], &st) != 0 )
perror(argv[i]);
printf("%i\n", st.st_ctime);
}
return 0;
}