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 http-equiv="Content-Style-Type" content="text/css"> 7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css"> 8<title>VFCutFileSize(W)</title> 9</head> 10 11<body> 12 13<h1>VFCutFileSize(W)</h1> 14 15<h2>C Specification</h2> 16<dl><dd><pre><code> 17#include <revolution/vf.h> 18 19VFErr VFCutFileSize( const char* path, u32 i_file_size ); 20VFErr VFCutFileSizeW( const VFWchar* path, u32 i_file_size ); 21</code></pre></dd></dl> 22 23<h2>Arguments</h2> 24<p> 25<TABLE border="1" > 26 <tr> 27<TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>path</EM></STRONG></CODE></TD> 28<TD width="520">The address that stores path and file name.<BR>Either a full or relative path may be specified.</TD> 29 </tr> 30 <tr> 31<TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>path</EM></STRONG></CODE></TD> 32<TD width="520">File size.</TD> 33 </tr> 34</TABLE> 35</p> 36 37<h2>Return Values</h2> 38<PRE> 39Returns 0 when successful. 40Otherwise, returns <code><a href="./VFErr.html">VFErr</a></code> other than 0. 41</PRE> 42 43 44<H2>Description</H2> 45<p> 46Removes all data beyond the specified file size from the specified file.<br><br>The internal processing uses file segmentation. For this reason, if the file entry for segmentation or the data region (512 bytes) cannot be secured, an error occurs.<br><br>You cannot specify a file that is open or has the read-only attribute (<CODE>VF_ATTR_RDONLY</CODE>). Wildcards ('<CODE>*</CODE>' and '<CODE>?</CODE>') cannot be used to specify file names.<br> 47</p> 48 49<h2>See Also</h2> 50<p> 51</p> 52 53<H2>Revision History</H2> 54<p> 552006/08/09<br>2007/05/08 Added to the Description. 56</p> 57 58 59<hr><p>CONFIDENTIAL</p></body> 60</html> 61