answersLogoWhite

0


Best Answer

int mystrlen (char* str) {

int len = 0;

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

return len;

}

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Weite a your own progrem to find a length of string without using library function?
Write your answer...
Submit
Still have questions?
magnify glass
imp
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?

What's the function of meter rule


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.


What function returns the length of a string?

strlen


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.


What is the function of pre-defined function LEN in Excel?

The LEN function returns the length of the specified string.=LEN(text)text is the string to return the length for.EXAMPLE:=LEN(word) will return the value of 4.