Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
Tags
- 시프
- LJESNJAK
- QA
- 1874
- c
- 4949
- system programming
- process control
- 입력 버퍼
- 백준
- Zero That Out
- 전자책
- Process Communication
- 10773
- file IO
- 바샤
- Baekjoon
- IT
- For Beginners
- 해바
- 5622
- BAKA
- c++
- File 조작
- 브런치
- 균형잡힌 세상
- 시스템 프로그래밍
- Parenthesis
- The Balance of the World
- 2941
Archives
- Today
- Total
목록Process (1)
해바
Lab #7
시스템 호출 getenv, setenv 등을 사용하여 환경 변수 PATH의 현재 값을 지우고 Lab #7이 저장된 directory 값으로 변경하는 프로그램을 작성하라. // env.c #include #include #include #include #include int main(int argc, char* argv[]) { char* path, *cwd; if(argc != 2) { printf("usage: a.out \n"); exit(1); } if((path = getenv(argv[1])) == NULL) { printf("File does not exist.\n"); exit(1); } printf("BEFORE ENV : %s\n", path); cwd = getcwd(NULL, BUFS..
System Programming
2019. 11. 18. 01:15