목록c_library (21)
Do You Coding?
📌 매뉴얼 (Linux)더보기NAME atoi - convert a string to an integer: 문자열을 정수로 변환하는 함수SYNOPSIS #include int atoi(const char *nptr);DESCRIPTION The atoi() function converts the initial portion of the string pointed to by nptr to int. The behavior is the same as strtol(nptr, NULL, 10); except that atoi() does not detect errors.: atoi() 함수는 nptr가 가리키는 문자열의 처음 부분을 정수로 변환합니다. 동작 방식은..
📌 매뉴얼 (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 ..
📌 매뉴얼 (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..
📌 매뉴얼 (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..
📌 매뉴얼 (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..
📌 매뉴얼 (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..