Root/file.h

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

Archive Download this file

Branches:
master



interactive