This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
compile time user name
- From: "Mohanlal Jangir" <mohanlaljangir at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 10 Apr 2007 10:57:50 +0900
- Subject: compile time user name
Does any gcc attribute exist to get user name at compile time? For example
int main( )
{
printf("*** version info ***\n");
printf("DATE = %s\n", __DATE__);
printf("TIME = %s\n", __TIME__);
printf("USER = %s\n", ??????);
return 0;
}
Any way to get USER info ??
Regards,
Mohan