fork of PCE focusing on macplus, supporting DaynaPort SCSI network emulation
1/*****************************************************************************
2 * pce *
3 *****************************************************************************/
4
5/*****************************************************************************
6 * File name: src/arch/dos/path.h *
7 * Created: 2013-01-01 by Hampa Hug <hampa@hampa.ch> *
8 * Copyright: (C) 2013-2015 Hampa Hug <hampa@hampa.ch> *
9 *****************************************************************************/
10
11/*****************************************************************************
12 * This program is free software. You can redistribute it and / or modify it *
13 * under the terms of the GNU General Public License version 2 as published *
14 * by the Free Software Foundation. *
15 * *
16 * This program is distributed in the hope that it will be useful, but *
17 * WITHOUT ANY WARRANTY, without even the implied warranty of *
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General *
19 * Public License for more details. *
20 *****************************************************************************/
21
22
23#ifndef PCE_DOS_PATH_H
24#define PCE_DOS_PATH_H 1
25
26
27void sim_buf_init (void **buf, unsigned *cnt, unsigned *max);
28int sim_buf_add (void **buf, unsigned *cnt, unsigned *max, unsigned char val);
29
30char *sim_get_dir_name (const char *src, char sep);
31char *sim_make_path (const char *s1, const char *s2);
32
33int sim_get_dos_basename (char *dst, const char *src, char sep);
34char *sim_get_dos_full_name (dos_t *sim, const char *name);
35char *sim_get_host_name (dos_t *sim, const char *dosname);
36
37
38#endif