I want to get value stored in environment variable $FILEPATH,which is set as:
I have used following code but it returning NULL......Quote:
When I echo it on command prompt ,then it gives me correct value but not in program.....Code:
char *var = getenv("$FILEPATH");
printf ("The environment variable is: %s", var);
Can anybody help in resolving this problem.......