OpenSSL    
 Documents |  openssl(1) |  ssl(3) |  crypto(3) |  HOWTO |  FIPS140 |  misc 
 
Title
FAQ
About
News
Documents
Source
Contributions
Support
Related

 

BIO_seek(3)



NAME

BIO_seek, BIO_tell - file BIO operations


SYNOPSIS

 #include <openssl/bio.h>
 #define BIO_seek(b,ofs)        (int)BIO_ctrl(b,BIO_C_FILE_SEEK,ofs,NULL)
 #define BIO_tell(b)            (int)BIO_ctrl(b,BIO_C_FILE_TELL,0,NULL)


DESCRIPTION

BIO_seek() sets the file position pointer to ofs bytes from start of file.

BIO_tell() returns the current file position.


RETURN VALUES

BIO_seek() returns the same value as the underlying fseek() function: 0 for success or -1 for failure.

BIO_tell() returns the current file position.


SEE ALSO

TBA