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.

123456789101112131415161718192021
  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. //Recursively copy a directory
  11. cms_err cms_util_dir_copy_recursive(char* dir1, char* dir2);
  12. //Join together two paths
  13. char* cms_util_path_join(char* str1, char* str2);
  14. #endif