doc/man3: use the documented coding style in the example code