In the C Programming Language, the memset characteristic stores c into the first n characters of the object pointed to by s.
The syntax for the memset function in the C Language is:
void *memset(void *s, int c, size_t n);
Parameters or Arguments
s A pointer to a reminiscence block that will be filled. c The price to be stored. n The wide variety of characters to be stored.
The memset function returns s.
In the C Language, the required header for the memset feature is:
In the C Language, the memset feature can be used in the following versions:
Other C features that are noteworthy when dealing with the memset function:
memcpy feature memmove feature