answersLogoWhite

0

int mystrlen (char* str) {

int len = 0;

while (*str++ != '\0') len++;

return len;

}

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

How do you find the length of string without using strlen function in MySQL?

SELECT char_length (...) FROM ...


Is an iguanas length a function of its age?

No, it's age is a function of its length


How do you find the length of string without using the strlen function in PHP?

$str = "Hello"; $nameArr=str_split($str); print_r($nameArr); echo "length: ".count($nameArr);


C plus plus code to find the length of a string without using function?

int i = 0; while(str[i] != NULL){ i++; }


Why use length function to find length of primitive data type array object?

There is no length function in C. You may have thought of sizeof or strlen. Perhaps.


What function f whose arc length from to x is 2x?

It is mathematically impossible to use arc length and an interval alone to determine a function!


What is the function of a meter rule?

Measurement of length.


What function returns the length of a string?

strlen


Which take a string as input and find its length?

strlen is the C library function that accepts a pointer to a char array and returns an integer specifying the number of characters (in bytes) of the array. This function is usually not used any more, because it does not support multi-byte characters, such as UTF-8.


How do you flip an array without using flip function in PHP?

Use a for-loop starting at the length of the array and go backwards and build up a new array with the values.


What function are used for string length in visual basic?

string length is a function use to check the lenght of a string i.e number of alphabets in a word or sentence.


The surface area of a cube as a function of the length of an edge?

Area = 6s2 where s is the length of an edge.