Answers for "C strlen implementation"

C
0

C strlen implementation

unsigned long long mystrlen(const char *str) {
    unsigned long long res{};
    for (; *(str + res); res++);
    return res;
}
Posted by: Guest on April-26-2022

Code answers related to "C"

Browse Popular Code Answers by Language