From: Paul on
"Bo Persson" wrote:

> On the other hand, sputn() is required to call xsputn(), which in turn
> behaves "as-if" it calls sputc(). So, why not call sputc() directly?

The idea behind sputn() which indeed should call xsputn() was optimisation
to avoid copying one character at a time. This is why developers may provide
an optimised version of xsputn() overriding the default implementation.