Functions to truncate and/or close a column

This commit is contained in:
Celine Mercier
2015-08-26 17:01:54 +02:00
parent fdc3b96beb
commit 48d10ea17c
9 changed files with 193 additions and 9 deletions

View File

@ -191,6 +191,34 @@ OBIDMS_column_p obi_clone_column(OBIDMS_p dms, const char* column_name, obiversi
int obi_close_column(OBIDMS_column_p column);
/**
* @brief Truncates a column file to the number of lines used.
*
* @param column a pointer on an OBIDMS column
*
* @return 0 if the operation was successfully completed
* @return -1 if an error occurred
*
* @since August 2015
* @author Celine Mercier (celine.mercier@metabarcoding.org)
*/
int obi_truncate_column_to_lines_used(OBIDMS_column_p column);
/**
* @brief Truncates a column file to the number of lines used and closes it.
*
* @param column a pointer on an OBIDMS column
*
* @return 0 if the operation was successfully completed
* @return -1 if an error occurred
*
* @since August 2015
* @author Celine Mercier (celine.mercier@metabarcoding.org)
*/
int obi_truncate_and_close_column(OBIDMS_column_p column);
/**
* @brief Sets the 'writable' header attribute of an OBIDMS column to False.
*