How to Validate the Length of a String in C (Length Check)
Max O'Didily
How to Validate the Length of a String in C (Length Check)
Greetings, in this C tutorial we shall be doing a length check on a string or character array. This validation is great for when you need the length of the input to be in a specific range. Like checking if the length is greater than 5 characters long to ensure a password isn't too short or ensuring a name isn't greater than 69 characters long.
We can use strlen to get the length of a string or character array in C. strlen is a great function for getting the size of a string in C. By getting the size of a string in C, we mean get how many characters a string has in C.
Thanks for watching this tutorial on how to check the lengthc of a string in C and validating it.
Subscribe to keep notified when I upload: https://tinyurl.com/SubMaxODidily
How to Validate the Length of a String in C (Length Check) ... https://www.youtube.com/watch?v=E3iPQN0ygAg
11232212 Bytes