paul@226 | 1 | /* |
paul@226 | 2 | * File access functions. |
paul@226 | 3 | * |
paul@226 | 4 | * Copyright (C) 2019 Paul Boddie <paul@boddie.org.uk> |
paul@226 | 5 | * |
paul@226 | 6 | * This program is free software; you can redistribute it and/or |
paul@226 | 7 | * modify it under the terms of the GNU General Public License as |
paul@226 | 8 | * published by the Free Software Foundation; either version 2 of |
paul@226 | 9 | * the License, or (at your option) any later version. |
paul@226 | 10 | * |
paul@226 | 11 | * This program is distributed in the hope that it will be useful, |
paul@226 | 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
paul@226 | 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
paul@226 | 14 | * GNU General Public License for more details. |
paul@226 | 15 | * |
paul@226 | 16 | * You should have received a copy of the GNU General Public License |
paul@226 | 17 | * along with this program; if not, write to the Free Software |
paul@226 | 18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, |
paul@226 | 19 | * Boston, MA 02110-1301, USA |
paul@226 | 20 | */ |
paul@226 | 21 | |
paul@278 | 22 | #pragma once |
paul@226 | 23 | |
paul@226 | 24 | #include <stdio.h> |
paul@226 | 25 | |
paul@226 | 26 | int isdir(const char *name); |
paul@226 | 27 | int isdir_dirname(const char *name); |
paul@226 | 28 | int isfile(const char *name); |
paul@226 | 29 | |
paul@226 | 30 | FILE *open_file_in_dir(const char *dirname, const char *basename, |
paul@226 | 31 | const char *mode); |
paul@226 | 32 | |
paul@278 | 33 | /* vim: tabstop=4 expandtab shiftwidth=4 |
paul@278 | 34 | */ |