This is how mine strlen function would look like if I'd to implement it from scratch :)

96 Views
/**
@author: Mathias Van Malderen (tux4life)
*/
size_t strlen(const char *s)
{
    size_t sz = 0;
    while(*s++) sz++;
    return sz;
}
About the Author

Just check out [my thread](http://www.daniweb.com/community-center/community-introductions/threads/205430/hello-from-tux) in the community introductions if you want to know more about me.