libft
-
💡 [C언어] memccpy 함수 설명 및 예시| 프로그래밍 분야/C 2021. 5. 4. 15:27
💡 man memccpy NAME memccpy -- copy string until character found LIBRARY Standard C Library (libc, -lc) SYNOPSIS #include void * memccpy(void *restrict dst, const void *restrict src, int c, size_t n); DESCRIPTION The memccpy() function copies bytes from string src to string dst. If the character c (as converted to an unsigned char) occurs in the string src, the copy stops and a pointer to the byt..
-
💡 [C언어] memcpy 함수 설명 및 다양한 예시| 프로그래밍 분야/C 2021. 5. 4. 14:31
💡 man memcpy NAME memcpy -- copy memory area LIBRARY Standard C Library (libc, -lc) SYNOPSIS #include void * memcpy(void *restrict dst, const void *restrict src, size_t n); DESCRIPTION The memcpy() function copies n bytes from memory area src to memory area dst. If dst and src overlap, behavior is undefined. Applications in which dst and src might overlap should use memmove(3) instead. RETURN VA..
-
💡 [C언어] bzero 함수 설명 및 예시| 프로그래밍 분야/C 2021. 5. 4. 11:11
💡 man bzero NAME bzero -- write zeroes to a byte string LIBRARY Standard C Library (libc, -lc) SYNOPSIS #include void bzero(void *s, size_t n); DESCRIPTION The bzero() function writes n zeroed bytes to the string s. If n is zero, bzero() does noth- ing. SEE ALSO memset(3), swab(3) HISTORY A bzero() function appeared in 4.3BSD. Its prototype existed previously in before it was moved to for IEEE S..
-
💡 [C언어] memset 함수 설명 및 자세한 예시| 프로그래밍 분야/C 2021. 5. 3. 17:37
💡 memset 함수의 정의 ✔︎ man memset NAME memset -- fill a byte string with a byte value LIBRARY Standard C Library (libc, -lc) SYNOPSIS #include void *memset(void *b, int c, size_t len); DESCRIPTION The memset() function writes len bytes of value c (converted to an unsigned char) to the string b. RETURN VALUES The memset() function returns its first argument. memset 함수는 string.h, memory.h 내장함수이다. 둘 중 ..