DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2009-08-04 22:07:58

Marijom
Member
From: Sweden
Registered: 2007-07-06
Posts: 54

How do i get filelength in C

i' still trying to convert old tools written for windows and now i have found a function called _filelengthi64 usually its just to remove the _ at the beginning and i64 at the end, but apparently filelength() doesnt exist.

How do i get the filesize in C.

Offline

 

#2 2009-08-06 06:11:24

modeng
Member
Registered: 2007-12-14
Posts: 9

Re: How do i get filelength in C

Lookup the doco on fstat() and the stat struct (sys/types.h sys/stat.h etc)

Offline

 

#3 2009-08-06 15:58:52

Marijom
Member
From: Sweden
Registered: 2007-07-06
Posts: 54

Re: How do i get filelength in C

Thanks

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB