sm64coopdx/data/dynos_file.cpp
2022-06-02 12:19:54 -07:00

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"); }
}