long osdGetEnvironmentVariable(char *name, char *value, long size)
The preferred method of accessing environment variables is through the
WBA unified environment interface (see WBA_Environment).
.SH RETURN VALUES
Returns 1 if the environment variable was present, 0 if it was not.
| name | The name of the environment variable |
| value | The buffer into which to place the value |
| size | The size of value |
char buffer[256];
if (osdGetEnvironmentVariable("USER", buffer, 256))
{ printf("Welcome, %s.\\n", buffer); }
else
{ fprintf(stderr, "Unknown user!\\n"); }