I’m new at C language and I need help. Can anybody say how to know the length of the scanned string? I have a structure
typedef personand
{
char FirstName[20];
chat LastName [20];
}
and I need to check if user inputs not to long char into char FirstName[20]
with scanf
. Thank you.