memset() is declared to return void* that is always the same value as the address passed into the function.
memset()
void*
What's the use of the return value? Why does it not return void?
void
It may be used for call chaining like:
char a[200]; strcpy(memset(a, 0, 200), "bla");
1.4m articles
1.4m replys
5 comments
57.0k users