MCPcopy Create free account
hub / github.com/Hamlib/Hamlib / csv_save

Function csv_save

tests/memcsv.c:73–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71
72
73int csv_save(RIG *rig, const char *outfilename)
74{
75 int status;
76 FILE *f;
77
78 f = fopen(outfilename, "w");
79
80 if (!f)
81 {
82 return -1;
83 }
84
85 if (rig->caps->clone_combo_get)
86 {
87 printf("About to save data, enter cloning mode: %s\n",
88 rig->caps->clone_combo_get);
89 }
90
91 status = rig_get_chan_all_cb(rig, RIG_VFO_NONE, dump_csv_chan, f);
92
93 fclose(f);
94
95 return status;
96}
97
98
99/** csv_load assumes the first line in a csv file is a key line,

Callers 1

mainFunction · 0.85

Calls 1

rig_get_chan_all_cbFunction · 0.85

Tested by

no test coverage detected