23.04.2013, 21:48
you could store the "strfound" position of the "_", and subtract it from strlen(name).
if the result>2 (or 3? didnt consider the string end \0, oops) then he last name is long enough?
if the result>2 (or 3? didnt consider the string end \0, oops) then he last name is long enough?