C
int FSattrib( FSFILE * file, unsigned char attributes );
Description
The FSattrib funciton will set the attributes of the specified file to the attributes passed in by the user. This function will load the file entry, replace the attributes with the ones specified, and write the attributes back. If the specified file is a directory, the directory attribute will be preserved.
Preconditions
File opened
Parameters
Parameters |
Description |
file |
Pointer to file structure |
attributes |
The attributes to set for the file
|
Return Values
Return Values |
Description |
0 |
Attribute change was successful |
-1 |
Attribute change was unsuccessful |
Side Effects
The FSerrno variable will be changed.
Remarks
None