본문 바로가기

해바

검색하기
해바
프로필사진 Bacha

  • 이야기 상자 (52)
    • QA (6)
      • For Beginners (6)
    • System Programming (15)
    • Python (0)
      • Programmers (0)
    • C, C++ (29)
      • BAEKJOON Online Judge (0)
      • 끄적끄적 (2)
    • Data Structure (0)
    • Artificial Intelligence (0)
    • Game Tips (1)
      • 엘더스크롤5 : 스카이림 (TES V : SKYR.. (1)
    • Blog Setting Tips (1)
    • 일기로그 (0)
      • 일기 (0)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/12   »
일 월 화 수 목 금 토
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
  • 1874
  • LJESNJAK
  • IT
  • 백준
  • 2941
  • 전자책
  • Process Communication
  • 5622
  • File 조작
  • Zero That Out
  • 시프
  • system programming
  • BAKA
  • process control
  • file IO
  • c++
  • Parenthesis
  • 해바
  • c
  • Baekjoon
  • The Balance of the World
  • 시스템 프로그래밍
  • 4949
  • 균형잡힌 세상
  • 입력 버퍼
  • 브런치
  • 10773
  • QA
  • 바샤
  • For Beginners
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록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
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바