NXC
Version 1.2.1 r5
Main Page
Related Pages
Modules
Data Structures
Files
Examples
All
Data Structures
Files
Functions
Variables
Groups
Pages
ex_sysfileresize.nxc
This is an example of how to use the
SysFileResize
function along with the
FileResizeType
structure.
task main()
{
byte handle;
// get a file handle
// ...
// resize the file
FileResizeType
args;
args.
FileHandle
= handle;
args.
NewSize
= 2048;
SysFileResize
(args);
if
(args.
Result
==
NO_ERR
)
{
// do something
}
}
Generated by
1.8.2