Hi , I am new to C programming and have only basic knowledge about it, I just want to ask you guys if you knew how to limit, for example, the number of inputs a user can input.

To make my point clear I'll give an example,

If I make a program that asks you a name, how can i limit your inputted letters to ,say, 5 letters only?

Is it possible through simple coding? thnx and a pleasant day to you all.