This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]