/** * File position modes for use with fseek(). */ #define SEEK_SET 0 /* Seek from start */ #define SEEK_CUR 1 /* Seek from current position */ #define SEEK_END 2 /* Seek from end position */
/** * Sets the file position indicator. * * @param file Handle to the file * @param position Position relative to what is specified in whence * @param start SEEK_ constant value of where to see from * * @return 0 on success, a non-zero value otherwise */ native fseek(file, position, start);