4 ms·
> void memset(void s, int c, size_t n); > The memset() function shall copy c (converted to an unsigned char) into each of the first n bytes of the object point
by scoutt 7y ago
> void memset(void s, int c, size_t n);
> The memset() function shall copy c (converted to an unsigned char) into each of the first n bytes of the object pointed to by s.
The standard just declares an interface, to be added to a C library (maybe?). It's not the job of the compiler to check for programmer's faults. The compiler doesn't care and it shouldn't.
- deleted 7y ago[deleted]
- gpderetta 7y agoThe standard defines the behaviour, not just the signature. Memset has been treated as a builtin since forever.