3 Jul 2007 14:41
Reply or Printf?
Julien ÉLIE <julien <at> trigofacile.com>
2007-07-03 12:41:07 GMT
2007-07-03 12:41:07 GMT
Hi,
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);
and
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. »
RSS Feed