Subversion
|
Version/format files. More...
Functions | |
svn_error_t * | svn_io_read_version_file (int *version, const char *path, apr_pool_t *pool) |
Set *version to the integer that starts the file at path. | |
svn_error_t * | svn_io_write_version_file (const char *path, int version, apr_pool_t *pool) |
Create (or overwrite) the file at path with new contents, formatted as a non-negative integer version followed by a single newline. |
Version/format files.
svn_error_t* svn_io_read_version_file | ( | int * | version, |
const char * | path, | ||
apr_pool_t * | pool | ||
) |
Set *version to the integer that starts the file at path.
If the file does not begin with a series of digits followed by a newline, return the error SVN_ERR_BAD_VERSION_FILE_FORMAT. Use pool for all allocations.
svn_error_t* svn_io_write_version_file | ( | const char * | path, |
int | version, | ||
apr_pool_t * | pool | ||
) |
Create (or overwrite) the file at path with new contents, formatted as a non-negative integer version followed by a single newline.
On successful completion the file will be read-only. Use pool for all allocations.