1 / 4

리눅스시스템프로그래밍

리눅스시스템프로그래밍. 예제 3-6 2006242107 전국휘. 사용된 함수 1. strtol () 함수 문자열을 long 형 정수로 변환 strtol (const char*s, char**a, int r); s : long 형 정수가 들어간 문자열 a : 변환이 중지된 ( 에러 ) 문자 r : 진법. “ 345ab ”. 10. 345 까지 변환하고 ab 는 불필요한 문자임으로 중지 -> 345. 사용된 함수 2. chmod () 함수 파일권한변경

jodie
Download Presentation

리눅스시스템프로그래밍

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 리눅스시스템프로그래밍 예제 3-6 2006242107 전국휘

  2. 사용된 함수 1 • strtol() 함수 • 문자열을 long형 정수로 변환 • strtol(const char*s, char**a, intr); • s : long형 정수가 들어간 문자열 • a : 변환이 중지된(에러) 문자 • r : 진법 “345ab” 10 345까지 변환하고 ab는 불필요한 문자임으로 중지 -> 345

  3. 사용된 함수 2 • chmod() 함수 • 파일권한변경 • chmod(const char*path, intamode) • path : 변경 대상 • amode : 변경할 권한값 721 소 유 자 : 모든권한 그룹사용자 : 쓰기 다른사용자: 실행 RWX W X

  4. 소스코드분석 $ ./ex3-6 Argv[1] Argv[2]

More Related