mirror of
https://github.com/jfdelnero/HxCFloppyEmulator.git
synced 2026-07-28 04:06:36 +00:00
New function : hxc_fopen.
git-svn-id: svn://svn.code.sf.net/p/hxcfloppyemu/code/HxCFloppyEmulator/libhxcadaptor/trunk@1366 63fa2f70-6a9b-4bc4-b855-9c6a949b1d69
This commit is contained in:
@@ -243,6 +243,18 @@ FILE *hxc_fopen (const char *filename, const char *mode)
|
||||
return stream;
|
||||
}
|
||||
|
||||
int hxc_fread(void * ptr, size_t size, FILE *f)
|
||||
{
|
||||
if( fread(ptr,size,1,f) != 1 )
|
||||
{
|
||||
return 1; // Error
|
||||
}
|
||||
else
|
||||
{
|
||||
return 0; // No Error
|
||||
}
|
||||
}
|
||||
|
||||
int hxc_fclose(FILE * f)
|
||||
{
|
||||
return fclose(f);
|
||||
|
||||
Reference in New Issue
Block a user