1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<title>FS_SeekFile</title> 9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">FS_SeekFile <img src="../../image/NTR.gif"align="middle"><img src="../../image/TWL.gif" align="middle"></h1> 15<h2>Syntax</h2> 16 17<dl> 18 <dd> 19<CODE>#include <nitro/fs.h></CODE><BR> <BR> <CODE>BOOL FS_SeekFile( <A href="../fs_file_type.html">FSFile</a> *p_file, s32 offset, <A href="../fs_seek_file_mode_type.html">FSSeekMode</a> origin );</CODE><br> <br> 20 </dd> 21</dl> 22<h2>Arguments</h2> 23<TABLE border="1" width="100%"> 24 <TBODY> 25 <TR> 26<TD width="13%"><EM><STRONG>p_file</STRONG></EM></TD> 27<TD width="87%">Address of the <A href="../fs_file_type.html"><CODE>FSFile</CODE></A> structure.</TD> 28 </TR> 29 <TR> 30<TD width="13%"><EM><STRONG>offset</STRONG></EM></TD> 31<TD width="87%">The number of bytes to move (in a positive direction from the beginning toward the end).</TD> 32 </TR> 33 <TR> 34<TD width="13%"><EM><STRONG>origin</STRONG></EM></TD> 35<TD width="87%">The move base position.</TD> 36 </TR> 37 </TBODY> 38</TABLE> 39 40<h2>Return Values</h2> 41<p>Returns TRUE if the file pointer is moved correctly; FALSE otherwise.</p> 42 43<H2>Description</H2> 44<P> 45This moves the file pointer from a base point that is specified by <CODE>origin</CODE> to a position that is offset by the amount that is specified by <CODE>offset</CODE>. The origin type is defined by the <code><A href="../fs_seek_file_mode_type.html">FSSeekFileMode</a></code> type. If the specified position is before the beginning of the file, the file pointer will move to the beginning. If the specified position is after the end of the file, the file pointer will move to the end. <BR> 46</P> 47<h2>See Also</h2> 48<p><CODE><A href="../fs_file_type.html">FSFile</A><BR> <A href="../fs_seek_file_mode_type.html">FSSeekFileMode</A><BR> <A href="FS_GetFileLength.html">FS_GetFileLength</A><BR> <A href="FS_ReadFile.html">FS_ReadFile</A><BR> <A href="FS_SeekFileToBegin.html">FS_SeekFileToBegin</A><BR> <A href="FS_SeekFileToEnd.html">FS_SeekFileToEnd</A></CODE></p> 49 50<H2>Revision History</H2> 51<P> 522008/10/02 Updated the See Also list.<br /> 2004/04/01 Initial version.<br /> 53</P> 54<hr><p>CONFIDENTIAL</p></body> 55</html> 56