In realtime when we try to copy a particular data from source to destination by using memcpy | memmove functions the number bytes copy from source to destination will always be size of the destination, Instead if we use size as sizeof source, it will cause to memory leak. So that by using this template functions, If size of the destination is less than sizeof source than it will produce error at compile time.So we can reduce the risk factor from memory leak or unpredictable behavior.
-
Notifications
You must be signed in to change notification settings - Fork 0
userganeshr/MemoryManipulation
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published