Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

C strlen implementation

unsigned long long mystrlen(const char *str) {
    unsigned long long res{};
    for (; *(str + res); res++);
    return res;
}
 
PREVIOUS NEXT
Tagged: #C #strlen #implementation
ADD COMMENT
Topic
Name
7+7 =