Don't call ReadArgs() if started from WB.
[tangerine.git] / compiler / clib / strlen.c
blob1222beaf06e0f5a728c87e0d995daeeeeda5b898
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 ANSI C function strlen().
6 */
8 /*****************************************************************************
10 NAME */
11 #include <string.h>
13 size_t strlen (
15 /* SYNOPSIS */
16 const char * ptr)
18 /* FUNCTION
19 Calculate the length of a string (without the terminating 0 byte).
21 INPUTS
22 ptr - The string to get its length for
24 RESULT
25 The length of the string.
27 NOTES
29 EXAMPLE
31 BUGS
33 SEE ALSO
35 INTERNALS
37 ******************************************************************************/
39 const char * start = ptr;
41 while (*ptr) ptr ++;
43 return (((long)ptr) - ((long)start));
44 } /* strlen */