Practice · 1 of 4
Length Report
CHALLENGE
Difficulty: beginner+25 XP
Implement int length_of(const char* s) returning strlen(s) as an int. Return -1 for NULL.
Press Submit to check your solution.
Back to lesson: Practice: String Library Practice
Practice · 1 of 4
Implement int length_of(const char* s) returning strlen(s) as an int. Return -1 for NULL.
Back to lesson: Practice: String Library Practice