GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
xt_dprintf(3) FreeBSD Library Functions Manual xt_dprintf(3)

xt_dprintf() - Print formatted output to a low-level file descriptor

#include <xtend/file.h>
-lxtend

int     xt_dprintf(int fd, const char * restrict format, ...)

fd      File descriptor to which items are written
format  printf-style format string

The dprintf() function, which takes a file descriptor rather than a FILE stream pointer, is provided by many systems including BSDs and Linux, but not by all. Use of xt_dprintf() from libxtend will ensure portability of code.

The number of characters written

int     fd;
if ( (fd = open(filename, O_WRONLY|O_CREAT)) != -1 )
{

xt_dprintf(fd, "fd = %dn", fd);
...
close(fd); }

fprintf(3)


Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.