[library] substr 구현하기
·
프로그래밍/C
📌 매뉴얼 (in subject)더보기Function name     do_substr Prototype     char *do_substr(char const *s, unsigned int start, size_t len); Parameters     s: The string from which to create the substring.     start: The start index of the substring in the string ’s’.     len: The maximum length of the substring.: s: 잘린 부분 문자열을 생성할 문자열입니다.start: 문자열 's'에 있는 부분 문자열의 시작 인덱스입니다.len: 서브스트링의 최대 길이입니다. Return valu..
[function] waitpid 함수 알아보기
·
프로그래밍/C
📌 매뉴얼 (Linux)더보기NAME       waitpid - wait for process to change state: 프로세스가 상태를 변경할 때까지 기다리기SYNOPSIS       #include        #include        pid_t waitpid(pid_t pid, int *wstatus, int options);DESCRIPTION       All  of  these  system  calls  are  used  to  wait for state changes in a child of the calling       process, and obtain information about the child whose state has changed.  A  state  ch..
[function] wait 함수 알아보기
·
프로그래밍/C
📌 매뉴얼 (Linux)더보기NAME       wait - wait for process to change state: 프로세스가 상태를 변경할 때까지 기다리기SYNOPSIS       #include        #include        pid_t wait(int *wstatus);DESCRIPTION       All  of  these  system  calls  are  used  to  wait for state changes in a child of the calling       process, and obtain information about the child whose state has changed.  A  state  change  is       considered  to ..
[function] unlink 함수 알아보기
·
프로그래밍/C
📌 매뉴얼 (Linux)더보기NAME       unlink - delete a name and possibly the file it refers to: 이름과 파일을 삭제SYNOPSIS       #include        int unlink(const char *pathname);       DESCRIPTION       unlink() deletes a name from the filesystem.  If that name was       the last link to a file and no processes have the file open, the       file is deleted and the space it was using is made available for       r..
[function] pipe 함수 알아보기
·
프로그래밍/C
📌 매뉴얼 (Linux)더보기NAME       pipe - create pipe: 파이프 만들기SYNOPSIS       #include        int pipe(int pipefd[2]);DESCRIPTION       pipe()  creates a pipe, a unidirectional data channel that can be used for interprocess commu‐       nication.  The array pipefd is used to return two file descriptors referring to  the  ends  of       the pipe.  pipefd[0] refers to the read end of the pipe.  pipefd[1] ..
[function] fork 함수 알아보기
·
프로그래밍/C
📌 매뉴얼 (Linux)더보기NAME       fork - create a child process: 하위 프로세스 생성하기SYNOPSIS       #include        #include        pid_t fork(void);DESCRIPTION       fork()  creates a new process by duplicating the calling process.  The new process is referred       to as the child process.  The calling process is referred to as the parent process.       The child process and the parent process run in separa..