[Solved] Environment variable set in batch file cannot be accessed in the C code compiled by the file [closed]

[ad_1]

Wild-assed guess, because you don’t even show a single line of C code: getenv(TEST_VAR) should be getenv("TEST_VAR").

PS: To avoid downvotes for your next question (and possibly unhelpful answers like mine), please read http://www.catb.org/esr/faqs/smart-questions.html explaining the art of asking smart questions.

2

[ad_2]

solved Environment variable set in batch file cannot be accessed in the C code compiled by the file [closed]