7 #include "simpletools.h" 16 info fred = { 123,
"Fred Flintstone" };
17 info wilma = { 456,
"Wilma Flintstone" };
31 exist =
eeprinted(
"%03d\n%32s\n", fred.num, fred.name);
33 eeprint(
"%03d\n%32s\n", fred.num, fred.name);
36 exist =
eeprinted(
"%03d\n%32s\n", wilma.num, wilma.name);
38 eeprint(
"%03d\n%32s\n", wilma.num, wilma.name);
44 for(
int record = 0; record < contacts; record++)
46 eescan(record,
"%d%s", &their.num, &their.name);
47 print(
"record %d = %d, %s\n", record, their.num, their.name);