using environment variables in C programs

utzoo!decvax!harpo!npoiv!alice!sjb utzoo!decvax!harpo!npoiv!alice!sjb
Thu Nov 4 15:35:46 AEST 1982


To get the environment variable xxx from within a C program, say:

	char *evar, *getenv();
	.
	.
	.
	evar = getenv("xxx");

I believe xxx must be exported (for sh users)



More information about the Comp.lang.c mailing list