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

readclose - read a whole file into a stralloc

Description

       readclose  reads  the  whole  content  into the stralloc sa.  The file is read in chunks of bufsize bytes
       size.  If everything worked fine, readclose returns 0.  On error, readclose returns  -1  and  sets  errno
       appropriately.

Name

       readclose - read a whole file into a stralloc

See Also

open_read(3), openreadclose(3), readclose_append(3)

                                                                                                    readclose(3)

Syntax

#include<libowfat/readclose.h>

       int readclose(int fd,stralloc* sa,size_t bufsize);

See Also