3 ms·
Yes, it is. From the C11 spec: > Characters from the array are written up to (but not including) the terminating null character. If the precision is specified,
by nwellnhof 4y ago
Yes, it is. From the C11 spec:
> Characters from the array are written up to (but not including) the terminating null character. If the precision is specified, no more than that many bytes are written. If the precision is not specified or is greater than the size of the array, the array shall contain a null character.
- torstenvl 4y agoThanks! I guess I didn't realize expressio unius est exclusio alterius applies in the C standard :D