table of contents
        
      
      
    
      other versions
    
    - Tumbleweed 0.34-2.1
 - Leap-16.0
 
| readclose(3) | Library Functions Manual | readclose(3) | 
NAME¶
readclose - read a whole file into a stralloc
SYNTAX¶
#include <libowfat/readclose.h>
int readclose(int fd,stralloc* sa,size_t bufsize);
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.