logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

TSfwrite - TSfwrite API function

Description

       Attempts to write length bytes of data from the buffer buf to the file filep.

       Make  sure  that  filep  is  open  for  writing.   You might want to check the number of bytes written (‐
       TSfwrite() returns this value) against the value of length.  If it is less, there might  be  insufficient
       space on disk, for example.

       The behavior is undefined if length is greater than SSIZE_MAX.

Name

       TSfwrite - TSfwrite API function

Return Value

       Returns the number of bytes actually written, or -1 if an error occurred.

Synopsis

          #include <ts/ts.h>

       ssize_tTSfwrite(TSFilefilep,constvoid*buf,size_tlength)

See Also