2 Copyright © 2015, The AROS Development Team. All rights reserved.
5 C99 function strnlen().
8 /*****************************************************************************
16 const char * ptr
, size_t n
)
19 Calculate the length of a string (without the terminating 0 byte).
22 ptr - The string to get its length for
26 The length of the string.
38 ******************************************************************************/
40 const char * start
= ptr
;
48 return (((long)ptr
) - ((long)start
));