CTL_STATUS_t ctl_ms_set_file_length(CTL_STREAM_t s, unsigned long length);
ctl_ms_set_file_length sets the length of the open file s to length. You cannot extend the file beyond its written length, but you can truncate it.