Linux/ETC
[Linux] getenv.c
hellojuntae
2019. 3. 22. 00:07
1 2 3 4 5 6 7 8 9 | #include <stdio.h> #include <stdlib.h> int main(int argvc, char* argv[]) { printf("%p\n", getenv(argv[1])); return 0; } | cs |
인자로 넘긴 환경변수의 주소를 출력해주는 소스코드이다.