if we have a string for example "test"
and call substr(0,3) for it it will give us the string tes right?
but how does substr work when we call substr(0,10000);
it will give us the string test, but will it check until it finds a '\0' or will it check all the 10000 bytes after the first character of the string? I mean, does substr check for such errors?