mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-28 15:03:01 +00:00
10 lines
No EOL
348 B
C++
10 lines
No EOL
348 B
C++
#include "dynos.cpp.h"
|
|
|
|
void SkipBytes(FILE *aFile, size_t amount) {
|
|
// If we're at end of file. There is no more to skip.
|
|
if (feof(aFile)) { return; }
|
|
|
|
int failure = fseek(aFile, amount, SEEK_CUR);
|
|
// If we failed to skip bytes. Print the error.
|
|
if (failure) { perror("The following error occured when skipping bytes"); }
|
|
} |