Nios/strlen
From ASMBits
nios/ifelse2Previous
Nextnios/strtolower
Write a function named strlen that returns the length of a null-terminated string. The string (a pointer to an array of characters) will be passed as the first argument of the function. A string contains non-null characters and ends with a single byte with value 0. The string must not be modified.
Return (in r2) the length of the string, which excludes the null termination character;
unsigned int strlen (const char *string);
Expected solution length: Around 10 lines.
Sample Input
"Hello World"
Sample Output
11
nios/ifelse2Previous
Nextnios/strtolower