home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GEMini Atari
/
GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso
/
zip
/
mint
/
mntlib16.lzh
/
MNTLIB16
/
STRLEN.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-08-03
|
339b
|
19 lines
/* from Henry Spencer's stringlib */
#include <string.h>
#undef strlen
/*
* strlen - length of string (not including NUL)
*/
size_t
strlen(scan)
register const char *scan;
{
register const char *start = scan+1;
if (!scan) return 0;
while (*scan++ != '\0')
continue;
return (size_t)((long)scan - (long)start);
}