Reply or Printf?

Julien ÉLIE julien at
Tue Jul 3 12:41:07 UTC 2007


I was looking at the code of « nnrpd/group.c ».
I have a little question (perhaps stupid) but I wonder
what the difference is between the use of Reply()
and Printf() in the code.

For instance, there is
  Printf("%d No group specified\r\n", NNTP_FAIL_XGTITLE);
  Reply("%s %s\r\n", NOSUCHGROUP, group);

Are they interchangeable?
Or is there a best practice in INN coding style?

And, another question, when will NNTP_FAIL_XGTITLE be changed
in the code to NNTP_FAIL_AUTHINFO_BAD?
(the first occurrence in « group.c » does not seem to
be related to ANU-News)

Julien ÉLIE

« Videt non te diu. »

More information about the inn-workers mailing list