New function _dirskip that allows to skip an amount of bytes from the

directory with error check.


git-svn-id: svn://svn.cc65.org/cc65/trunk@5668 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2012-06-01 19:23:34 +00:00
parent 8087959e18
commit eab5f250ad
5 changed files with 117 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
/*
/*
* Internal include file, do not use directly.
* Written by Ullrich von Bassewitz. Based on code by Groepaz.
*/
@@ -24,6 +24,22 @@ struct DIR {
/*****************************************************************************/
/* Code */
/*****************************************************************************/
unsigned char __fastcall__ _dirskip (unsigned char count, struct DIR* dir);
/* Skip bytes from the directory and make sure, errno is set if this isn't
* possible. Return true if anything is ok and false otherwise. For
* simplicity we assume that read will never return less than count if there
* is no error and end-of-file is not reached.
* Note: count must not be more than 254.
*/
/* End of dir.h */
#endif