A static site generator, written in C
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

cms_util.h 525B

123456789101112131415161718192021222324
  1. #ifndef CMS_UTIL_H
  2. #define CMS_UTIL_H
  3. #include "cms_err.h"
  4. //Return 1 if a file exists, 0 if it doesn't
  5. int cms_util_file_exists(char* fname);
  6. //Create a file
  7. cms_err* cms_util_file_create(char* fname);
  8. //Copy a file
  9. cms_err* cms_util_file_copy(char* fname1, char* fname2);
  10. //Read a file into a string
  11. char* cms_util_file_read(char* fname);
  12. //Recursively copy a directory
  13. cms_err* cms_util_dir_copy_recursive(char* dir1, char* dir2);
  14. //Join together two paths
  15. char* cms_util_path_join(char* str1, char* str2);
  16. #endif