In ARM Assembly Language , I need to write an implementation of the function strlengths: int strlengths(const
Fantastic news! We've Found the answer you've been seeking!
Question:
In ARM Assembly Language ,
I need to write an implementation of the function strlengths:
int strlengths(const char **strings, int cnt);This function accepts a pointer to an array of C string pointers. The parameter cnt is how many strings are in the array. The function returns the total of the lengths of all strings in the array. For example, supposed the function is passed this array and size=4:
const char *strings1[] = {\"Bird\", \"Car\", \"Plane\", \"Bug\"};The function would return 15, which is the sum of the lengths of the four strings (4+3+5+3).
Posted Date: