[library] split 구현하기
·
프로그래밍/C
📌 매뉴얼 (in subject) 더보기 Function name      do_split  Prototype      char **do_split(char const *s, char c);  Parameters      s: The string to be split. / c: The delimiter character.: s 는 나눠줄 문자열, c는 구분자 문자  Return value     The array of new strings resulting from the split. NULL if the allocation fails.: 나눠진 결과 문자열의 배열을 반환, 할당에 실패하면 NULL 반환  External functs     malloc, free  Description      All..
[library] strtrim 구현하기
·
프로그래밍/C
📌 매뉴얼 (in subject)더보기Function name     do_strtrim Prototype     char *do_strtrim(char const *s1, char const *set); Parameters     s1: The string to be trimmed. set: The reference set of characters to trim.: s1은 잘라낼 문자열. / set: 잘라낼 문자의 참조 집합 Return value     The trimmed string. NULL if the allocation fails.: 잘라낸 문자열. 할당에 실패하면 NULL External functs     malloc Description     Allocates (with malloc..
[library] strjoin 구현하기
·
프로그래밍/C
📌 매뉴얼 (in subject)더보기Function name     do_strjoin Prototype     char *do_strjoin(char const *s1, char const *s2); Parameters     s1: The prefix string. s2: The suffix string.: s1은 접두사 문자열, s2는 접미사 문자열 Return value     The new string. NULL if the allocation fails.: 새 문자열. 할당에 실패하면 NULL입니다. External functs     malloc Description     Allocates (with malloc(3)) and returns a new string, which is th..
[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 ..