This function is compatible with the following targets:
|
|
#include <stdlib.h>
char *getenv(char *name);Parameters:
Parameters for this facility are:
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
char *value;
char *var = "path";
if( (value = getenv(var)) == NULL)
{ printf("%s is not a environmental variable", var);}
else
{ printf("%s = %s \n", var, value);}
return 0;
}
Result:
path = c:\program files\metrowerks\codewarrior;c:\WINNT\system32
[ First ] [ Previous ] [ Next ] [ Last ] [ Manuals ]
Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.
Last updated: August 16, 2000