I don't know how many “I genuinely tried to use ChatGPT to help me in something I was doing and this was the result” posts I should be doing. Here is one more because the request has already been sent. I am in any case going to stop soon out of boredom.
This is the question I had:
In the C23 standard, 7.26.1:3 says: “Where an argument declared as size_t n specifies the length of the array for a function, n can have
the value zero on a call to that function. Unless explicitly stated otherwise in the description of a particular function in this subclause, pointer arguments on such a call shall still have valid values, as described in 7.1.4. ”. What are the functions to which the exception “Unless explicitly stated otherwise in the description of a particular function in this subclause” applies?. In other words, what are the functions from string.h that can be passed an invalid pointer when accompanied with an argument size_t n of 0?