I have a TMS320C28x customer who wants to access Windows environment variables from within his C code at compile time. For example, he has a Win environment variable called "USERNAME" that is a string identifying the person logged into the PC. He would like to be able to access this string from his C-code, e.g.
printf("Program was compiled by %s \n", $USERNAME);
Of course, the above code does not work (I played around with this for awhile before posting).
***QUESTION: Is there a way to do this?
I see the compiler has a few built-in macros such as __TIME__ and __DATE__ that access Windows information, but I don't see anything listed for a generic environment variable.
Thank you and Happy New Year.
- David