title: The char array in C. How to find actual length of valid input?
body: <p>Suppose i have array of characters. say char x[100]</p>
  
  <p>Now, i take input from the user and store it in the char array. The user input is less than 100 characters. Now, if i want to do some operation on the valid values, how do i find how many valid values are there in the char array. Is there a C function or some way to find the actual length of valid values which will be less than 100 in this case.</p>