StudyingUnixInterface/7/pcs/env.c

13 lines
191 B
C
Raw Permalink Normal View History

2020-12-13 02:37:27 +00:00
#include <stdlib.h>
#include <stdio.h>
int main(void) {
char *pbuf = getenv("HOME");
printf("HOME: %s\n", pbuf);
pbuf = getenv("LANG");
printf("LANG: %s\n", pbuf);
return 0;
}