Root/
Source at commit 228f7b47f7d97c7aa4ce8b072f3575226ec294ce created 8 years 7 days ago. By Werner Almesberger, Makefile (man): generate and display the man page | |
---|---|
1 | /* |
2 | * file.h - File handling |
3 | * |
4 | * Written 2009-2011 by Werner Almesberger |
5 | * Copyright 2009-2011 by Werner Almesberger |
6 | * |
7 | * This program is free software; you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by |
9 | * the Free Software Foundation; either version 2 of the License, or |
10 | * (at your option) any later version. |
11 | */ |
12 | |
13 | |
14 | #ifndef FILE_H |
15 | #define FILE_H |
16 | |
17 | #include <stdio.h> |
18 | |
19 | |
20 | /* |
21 | * Returns -1 on error. |
22 | */ |
23 | int file_exists(const char *name); |
24 | |
25 | char *set_extension(const char *name, const char *ext); |
26 | void save_with_backup(const char *name, int (*fn)(FILE *file, const char *one), |
27 | const char *one); |
28 | int save_to(const char *name, int (*fn)(FILE *file, const char *one), |
29 | const char *one); |
30 | |
31 | void save_fpd(void); |
32 | void write_kicad(void); |
33 | void write_ps(const char *one); |
34 | void write_ps_fullpage(const char *one); |
35 | void write_gnuplot(const char *one); |
36 | |
37 | #endif /* !FILE_H */ |
38 |
Branches:
master