Root/file.h

Source at commit 5fdea0e99a2e8543a59d508cf28e1f2ff3607f18 created 5 years 4 months ago.
By Werner Almesberger, gui_canvas.c (key_press_event): make / rotate through packages as well
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 */
23int file_exists(const char *name);
24
25char *set_extension(const char *name, const char *ext);
26void save_with_backup(const char *name, int (*fn)(FILE *file, const char *one),
27    const char *one);
28int save_to(const char *name, int (*fn)(FILE *file, const char *one),
29    const char *one);
30
31void save_fpd(void);
32void write_kicad(void);
33void write_ps(const char *one);
34void write_ps_fullpage(const char *one);
35void write_gnuplot(const char *one);
36
37#endif /* !FILE_H */
38

Archive Download this file

Branches:
master



interactive