Forum Discussion
Altera_Forum
Honored Contributor
15 years agoHi Chase,
fgets requires a char* (pointer to char) as first parameter. Your Sonar_Height variable is a char** (pointer to a pointer to char). In order to have a 3 char array you must change to: char Sonar_Height [3];