[Day 18] - memset, memcpy, strcpy, memmove
►C Programming playlist: https://www.youtube.com/playlist?list=PLvv0ScY6vfd8M-Mi_Vyrg7KgISTW3Sklt
►Find full courses on: https://courses.mshah.io/
►Join as member to get perks: https://www.youtube.com/channel/UCA64pZbN5Mz5NxC3SO4qpDg/join
►Lesson Description: In this lesson I show you how to use some of the most common functions found in the string.h library regarding memory. In C we often think in terms of blocks of memory or bytes of memory, so these operations can allow you to manipulate your data at a very low level.
00:00 Introduction
00:22 Why I suspect memory operations are in string.h
1:22 Test program overview
4:04 memset example (with an array)
7:20 memset example to zero initialize a struct
8:47 memset visualization on drawing board
11:08 memcpy introduction
11:50 memcpy visualization
12:46 memcpy example - creating a copy
14:23 memcpy example - copying to smaller region of memory
16:51 strcpy introduction and comparison with memcpy
18:02 strcpy example
18:52 memcpy example with a struct
21:14 memmove demonstration and visual
22:12 memmove code example
24:49 Conclusion
►Please like and subscribe to help the channel!
►YouTube Channel: https://www.youtube.com/c/MikeShah
►Join our free community: https://courses.mshah.io/communities/Q29tbXVuaXR5LTI3MzAz