O$10.22: GetEnvironmentVariableW

Kelly Burgess kellyb at montana.com
Sat Aug 27 21:20:44 UTC 2022


Jean-Marc wrote:
>Calculate vUser as getenv("USER")

Turns out that getenv() arguments are case-sensitive, and that Mac and Windows differ in the labeling.  USER on Mac, USERNAME on Windows.  HOME on Mac, HOMEPATH on Windows.  PATH on Mac, Path on Windows.

So listenv() is your friend here, helps identify the spelling and differences that getenv() expects.

Kelly


More information about the omnisdev-en mailing list