<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-2" http-equiv=Content-Type>
<META content="MSHTML 5.00.2614.3500" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face="Arial CE"><PRE><DIV><FONT face="Arial CE">Vazeny kolegovia!</FONT></DIV><DIV>&nbsp;</DIV><DIV><FONT face="Arial CE">Nevie mi niekto poradit, ci existuje nejaky ekvivalent funkcie filelength v headeroch gcc 2.x v LINUX-e , alebo ina moznost ziskania velkosti suboru </FONT></DIV><DIV><FONT face="Arial CE">(mozno readdir -uz som dlho nerobil s dirent strukturou-takze neviem ci to da aj velkost) najak mi ani man (nepozna),apropos a ani google nepomohol </FONT></DIV><DIV><FONT face="Arial CE">a sam programovat, co uz iste niekto urobil....</FONT></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><FONT face="Arial CE">Vdaka za radu</FONT></DIV><DIV>&nbsp;</DIV><DIV><FONT face="Arial CE">Peto</FONT></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><H2><FONT size=2><A href="http://www.delorie.com/djgpp/doc/libc/libc_toc.html#TOC306" name=SEC306>filelength</A></FONT></H2><H3><FONT size=2>Syntax</FONT></H3><PRE>#include &lt;io.h&gt;

long filelength(int fhandle);
</PRE><H3><FONT size=2>Description</FONT></H3><P>This function returns the size, in bytes, of a file whose handle is specified in the argument <VAR>fhandle</VAR>. To get the handle of a file opened by section <A href="http://www.delorie.com/djgpp/doc/libc/libc_319.html#SEC319">fopen</A> or section <A href="http://www.delorie.com/djgpp/doc/libc/libc_329.html#SEC329">freopen</A>, you can use section <A href="http://www.delorie.com/djgpp/doc/libc/libc_307.html#SEC307">fileno</A> macro. <H3><FONT size=2>Return Value</FONT></H3><P>The size of the file in bytes, or (if any error occured) -1L and <VAR>errno</VAR> set to a value describing the cause of the failure. If the file's length is larger than a 32-bit <CODE>unsigned int</CODE> can hold, <CODE>errno</CODE> will be set to <CODE>EOVERFLOW</CODE>. <H3><FONT size=2>Portability</FONT></H3><P>not ANSI, not POSIX </P></PRE></FONT></DIV></BODY></HTML>