question regarding libsmbclient ´ s command lseek
rsharpe at richardsharpe.com
Fri Jan 7 21:12:22 GMT 2005
On Fri, 7 Jan 2005, Max Giesbert wrote:
> my question is:
> to get the filesize of a remote file on a computer running xp sp1 i use
> the following command: long fileLength = smbc_lseek(my_fileHandle_, 0,
> SEEK_END) ; sadly it always returns just the offset(here 0). using
> SEEK_PUT or SEEK_CUR work as exspected...
Hmmm, that should probably work, but to find the file size, you should
only have to call smbc_stat ...
int smbc_stat(const char *url, struct stat *st)
Richard Sharpe, rsharpe[at]richardsharpe.com, rsharpe[at]samba.org,
More information about the samba-technical