libixp

git clone git://oldgit.suckless.org/libixp/
Log | Files | Refs | LICENSE

ixp_write.3 (1021B)


      1 .TH "IXP_WRITE" 3 "2010 Jun" "libixp Manual"
      2 
      3 .SH NAME
      4 .P
      5 ixp_write, ixp_pwrite
      6 
      7 .SH SYNOPSIS
      8 .nf
      9   #include <ixp.h>
     10   
     11   long ixp_write(IxpCFid *fid, const void *buf, long count);
     12   
     13   long ixp_pwrite(IxpCFid *fid, const void *buf, long count, int64_t offset);
     14 .fi
     15 
     16 .SH PARAMETERS
     17 .TP
     18 buf
     19 A buffer holding the contents to store.
     20 .TP
     21 count
     22 The number of bytes to store.
     23 .TP
     24 offset
     25 The offset at which to write the data.
     26 
     27 .SH DESCRIPTION
     28 .P
     29 ixp_write and ixp_pwrite each write IcountR bytes of
     30 data stored in IbufR to the file pointed to by C<fid>.
     31 ixp_write writes its data at its stored offset, and
     32 increments it by IcountR. ixp_pwrite writes its data a
     33 IoffsetR and does not alter C<fid>'s stored offset.
     34 
     35 .SH RETURN VALUE
     36 .P
     37 These functions return the number of bytes actually
     38 written. Any value less than IcountR must be considered
     39 a failure.
     40 
     41 .SH SEE ALSO
     42 .P
     43 ixp_mount(3), ixp_open(3), ixp_read(3)
     44 
     45 
     46 .\" man code generated by txt2tags 2.5 (http://txt2tags.sf.net)
     47 .\" cmdline: txt2tags -o- ixp_write.man3
     48