pennsnoplus / penn_daq_old

Simple DAQ for SNO+
2 stars 3 forks source link

Better Print Send #14

Closed peterldowns closed 13 years ago

peterldowns commented 13 years ago

Rewrite print_send() to accept a variable number of arguments so that it is a perfect find/replace substitution for printf().

Use the library (see The C Book)

Final version should work like this:

print_send("%s says %s (%d times)\n", "Peter", "it sure is hot out", 3);

peterldowns commented 13 years ago

Finished. The new function is called printsend and is defined in net_util.c.