7 kyu

strlen

Description:

Given a string, output its length (as a character).

Note: the code is prepended with >,[>,] to avoid trivializing the problem.

Input

A string of length between 0 and 255

Output

A char representing representing the length of the string

Examples

strlen("\0") -> '\x00'
strlen("Hello, World!\0") -> '\x0d'
strlen("a\0") -> '\x01'
Strings
Algorithms

More By Author:

Check out these other kata created by user4279289

Stats:

CreatedJul 5, 2023
PublishedJul 5, 2023
Warriors Trained61
Total Skips1
Total Code Submissions51
Total Times Completed29
BF Completions29
Total Stars1
% of votes with a positive feedback rating100% of 15
Total "Very Satisfied" Votes15
Total "Somewhat Satisfied" Votes0
Total "Not Satisfied" Votes0
Total Rank Assessments11
Average Assessed Rank
7 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • user4279289 Avatar
  • Madjosz Avatar
  • Kacarott Avatar
Ad