Mercurial > hg > Members > kono > nitros9-code
view docs/ccguide/fseek.refentry @ 2772:0a3f4d8ea6d5
Found ENDC in wrong location in dwread.asm and dwwrite.asm. Corrected.
Moved the native 6309 code in dwread.asm and dwwrite.asm into the H6309 labeled area and changed IFEQ H6309 to IFNE H6309. Also moved the 57600bps 6809 code to the default location. This change had been done in the old dwread.asm and dwwrite.asm files to make it easier to follow. Though these two files were overwritten from the HDBDOS project dwread.asm and dwwrite.asm files. So this conversion needed to be done again so it made the source easier to follow.
author | drencor-xeen |
---|---|
date | Wed, 23 Jan 2013 12:36:55 -0600 |
parents | fe8e46eca1ed |
children |
line wrap: on
line source
<refentry id="fseek"> <refnamediv> <refname>Fseek</refname> <refname>Rewind</refname> <refname>Ftell</refname> <refpurpose>position in a file or report current position</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> #include <stdio.h> </funcsynopsisinfo> <funcprototype> <funcdef><function>fseek</function></funcdef> <paramdef>FILE *<parameter>fp</parameter></paramdef> <paramdef>long <parameter>offset</parameter></paramdef> <paramdef>int <parameter>place</parameter></paramdef> </funcprototype> <funcprototype> <funcdef><function>rewind</function></funcdef> <paramdef>FILE *<parameter>fp</parameter></paramdef> </funcprototype> <funcprototype> <funcdef>long <function>ftell</function></funcdef> <paramdef>FILE *<parameter>fp</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1><title>Description</title> <para> Fseek repositions the next character position of a file for either read or write. The new position is a "offset" bytes from the beginning of the file if "place" is 0, the current position is 1, or the end if 2. Fseek sorts out the special problems of buffering. </para> <para> NOTE that using "lseek()" on a buffered file will produce unpredictable results. </para> <para> Rewind is equivalent to "fseek(fp,0L,0)". </para> <para> Ftell returns the current position, measured in bytes, from the beginning of the file pointed to by "fp". </para> </refsect1> <refsect1><title>Diagnostics</title> <para> Fseek returns -1 if the call is invalid. </para> </refsect1> <refsect1><title>See Also</title> <para> System call <link linkend="lseek">lseek()</link>. </para> </refsect1> </refentry>