Is there a way to find the length of char i enter from the keyboard? I am entering single digit numbers 0-9 as chars. So i cant enter over 20 chars but i need to find the size of what i enter. Like if i input 123456 i need to find out the size of 6 numbers or if i do 123 i the size is 3 numbers. Can this be done??

Use strlen() since you are entering characters.

Use strlen() since you are entering characters.

How does that work im not familiar with it.

How does that work im not familiar with it.

Like this

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.