NXC
Version 1.2.1 r5
Main Page
Related Pages
Modules
Data Structures
Files
Examples
All
Data Structures
Files
Functions
Variables
Groups
Pages
ex_sysfilerename.nxc
This is an example of how to use the
SysFileRename
function along with the
FileRenameType
structure.
task main()
{
FileRenameType
frArgs;
frArgs.
OldFilename
=
"myfile.txt"
;
frArgs.
NewFilename
=
"myfile2.txt"
;
SysFileRename
(frArgs);
if
(frArgs.
Result
==
LDR_SUCCESS
) {
/* do something */
}
}
Generated by
1.8.2