view src/lib/read-full.h @ 3520:e2fe8222449d HEAD

s/occured/occurred/
author Timo Sirainen <tss@iki.fi>
date Sun, 07 Aug 2005 14:41:19 +0300
parents 79790750c349
children e4eb71ae8e96
line wrap: on
line source

#ifndef __READ_FULL_H
#define __READ_FULL_H

/* Read data from file. Returns -1 if error occurred, or 0 if EOF came before
   everything was read, or 1 if all was ok. */
int read_full(int fd, void *data, size_t size);
int pread_full(int fd, void *data, size_t size, off_t offset);

#endif