Newer
Older
ubixos / src / lib / libc / string / strlen.c
@apwillia apwillia on 25 Jul 2002 186 bytes Added strlen
#include <sys/types.h>
#include <string.h>

int strlen(const char * string)
{
    int i = 0;
    
    while (1)
    {
	if (string[i] == '\0')
	    return i;
	i++;
    }

    return 0;
}