Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
I need to zero a mixed data type array and am wondering if there is a better way. The code below does work but seems nonelegant at best. Anyone have a cleaner way??
struct preset_data { char *pref; char *name; short int lat, lon; }; preset_data preset_table[] = { // my array has a total of 10 entries... {"","",0,0}, {"","",0,0}, {"","",0,0}, {"","",0,0}, {"","",0,0}, {"","",0,0}, {"","",0,0}, {"","",0,0}, {"","",0,0}, {"","",0,0}, };