RNAlib-2.4.14
utils.h
Go to the documentation of this file.
1 #ifndef VIENNA_RNA_PACKAGE_FILE_UTILS_H
2 #define VIENNA_RNA_PACKAGE_FILE_UTILS_H
3 
10 #include <stdio.h>
11 
21 void vrna_file_copy(FILE *from,
22  FILE *to);
23 
24 
35 char *vrna_read_line(FILE *fp);
36 
37 
41 int vrna_mkdir_p(const char *path);
42 
43 
47 char *vrna_basename(const char *path);
48 
49 
53 char *vrna_dirname(const char *path);
54 
55 
97 char *vrna_filename_sanitize(const char *name,
98  const char *replacement);
99 
100 
107 int
108 vrna_file_exists(const char *filename);
109 
110 
115 #endif
int vrna_mkdir_p(const char *path)
Recursivly create a directory tree.
char * vrna_dirname(const char *path)
Extract the directory part of a file path.
char * vrna_filename_sanitize(const char *name, const char *replacement)
Sanitize a file name.
char * vrna_basename(const char *path)
Extract the filename from a file path.
char * vrna_read_line(FILE *fp)
Read a line of arbitrary length from a stream.
int vrna_file_exists(const char *filename)
Check if a file already exists in the file system.
void vrna_file_copy(FILE *from, FILE *to)
Inefficient `cp&#39;.