What is the c++ standard ( non-windows) equivalent of Fuction SetFilePointer()

I have a function using SetFilePointer()

HANDLE In; SetFilePointer(In, 3, NULL, 0); 

I want to adapt this function for non-windows platforms taking a Pointer to FILE (FILE*) as argument .

What function Set_File_Pointer_SomeHow() does the same as SetFilePointer() which can I use for that?

FILE* In; Set_File_Pointer_SomeHow(In, ); 
4

1 Answer

I think you want std::fseek(std::FILE* stream, long offset, int origin).

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

You Might Also Like