From the course: C Standard Library
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Memory chunk operations - C Tutorial
From the course: C Standard Library
Memory chunk operations
- [Instructor] Here we have two very special functions in string.h which manipulate chunks of bytes in memory. The first one is memset, and it writes into the destination buffer in the first argument, the value in its second argument, sequentially as many times as specified in its count argument. Although the second argument has an integer type, it is treated as a unsigned char, meaning a single byte. Now, the second function us memcpy or mem copy, which copies a source buffer's content into a destination buffer. The number of bytes to copy is specified in the third argument.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
String manipulation1m 21s
-
(Locked)
String manipulation example2m 3s
-
(Locked)
String examination1m 43s
-
(Locked)
String examination example8m 5s
-
(Locked)
Memory chunk operations43s
-
(Locked)
Memory chunk operations example5m 13s
-
(Locked)
Challenge: Find a special word59s
-
(Locked)
Solution: Find a special word6m 25s
-
-
-