The memset function copies value (converted to an unsigned char) into each of the first size characters of the object pointed to by s. This function returns s. It does not check for the overflow of the receiving memory area pointed to by s.