I'm writing a program...and I don't fully understand strings and pointers at the moment.
I'm taking in a sentence from a user using the gets() function.
How can I determine how long the string is? I declare the string as char string1; But if the user's sentence isn't 80 characters long, is there a function I can use to determine the size? Also, what header file(s) do I need to include.
Any help would be greatly appreciative.