Moin Tom,
ach, ich meinte doch strlen()…
Das Verhalten von strlen
ist genau definiert:
Returns the length of the given null-terminated byte string, that is, the number of characters in a character array whose first element is pointed to by str up to and not including the first null character.
Viele Grüße
Robert