Closed peterldowns closed 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);
Finished. The new function is called printsend and is defined in net_util.c.
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);