memset
-
💡 [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 내장함수이다. 둘 중 ..