The following code snippet asks a file whether it has any changes pending:
// Does the file have any changes pending?
_modifiedByOther = ttdt_Get_Modified( _contract, _file, TT_BOTH,
10 * timeOutFactor );
The following code snippet reverts a file to its last version:
// Revert file to last version
status = ttdt_Revert(_contract, _file, TT_BOTH,
10 * timeOutFactor );
The following code snippet saves pending changes to a file:
// Save pending changes
status = ttdt_Save( _contract, _file, TT_BOTH,
10 * timeOutFactor );