X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fio%2Fkfile.h;h=9b0b07d016aa27c8692c98b333827a3ace61e5b6;hb=328675078ae8cd81cfa3524ad9cd082621a18566;hp=040e04a8684495c99266103348d2995d278c2871;hpb=cd7538b224bbe4fb287b96903678df6ae435522c;p=bertos.git diff --git a/bertos/io/kfile.h b/bertos/io/kfile.h index 040e04a8..9b0b07d0 100644 --- a/bertos/io/kfile.h +++ b/bertos/io/kfile.h @@ -223,6 +223,12 @@ int kfile_genericClose(struct KFile *fd); /** * Read \a size bytes from file \a fd into \a buf. * + * This function reads at most the number of requested bytes into the + * provided buffer. + * The value returned may be less than the requested bytes in case EOF is + * reached OR an error occurred. You need to check the error conditions + * using kfile_error() to understand which case happened. + * * \note This function will block if there are less than \a size bytes * to read. *