Ok,I could change something from this code....but the thing that I can't do is to limit the string inputted by the user.
for example :
We are allocating space for a 2 character string but the user
is giving us more. We need to stop at two characters
> Number of characters: 2
> Enter Text: Hi Bob!
> Text: Hi Bob!\n
expected:HI
I could run this code using this but,I can limit the string,
thank you for your answer code777,