[utility] get_next_line 구현하기
·
프로그래밍/C
📌 매뉴얼 (in subject)더보기Function name     get_next_line Prototype     char *get_next_line(int fd); Parameters     fd: The file descriptor to read from: 읽어온 파일 디스크립터 Return value    Read line: correct behavior / NULL: there is nothing else to read, or an error occurred: 올바른 동작은 줄 1줄 읽어오는 것이고, 읽을 게 없거나 에러가 발생하면 NULL을 반환한다 External functs     read, malloc, free Description     Write a function that r..
[graphic] miniLibX Manual
·
프로그래밍/C
📌 MiniLibX - mlx_init더보기NAME    MiniLibX - Simple X-Window Interface Library for students SYNOPSYS     #include      void * mlx_init (); DESCRIPTION     MiniLibX is an easy way to create graphical software, without any X-Window programming knowledge. It     provides simple window creation, a drawing tool, image and basic events management. X-WINDOW CONCEPT     X-Window is a network-oriented gra..
[library] itoa 구현하기
·
프로그래밍/C
📌 매뉴얼 (in subject)더보기Function name     do_itoa Prototype    char *do_itoa(int n); Parameters     n: the integer to convert: n: 변환할 정수 Return value     The string representing the integer. NULL if the allocation fails.: 정수를 나타내는 문자열. 할당에 실패하면 NULL External functs     malloc Description     Allocates (with malloc(3)) and returns a string representing the integer received as an argument. Negative ..
[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..