aboutsummaryrefslogtreecommitdiffstats
path: root/libasn1compiler/asn1c_compat.h
blob: e80e2e77a34496c177d88d75563510f4d57027fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef	ASN1C_COMPAT_H
#define	ASN1C_COMPAT_H

#ifdef	HAVE_CONFIG_H
#include <config.h>
#endif

/*
 * Open the arbitrary file by its base name and extension.
 */
FILE *asn1c_open_file(const char *base_part, const char *extension);

/*
 * Obtain base name and directory name of a path.
 * Some systems have them in <libgen.h> as dirname(3) and basename(3).
 */
char *a1c_basename(const char *path);
char *a1c_dirname(const char *path);

#endif	/* ASN1C_COMPAT_H */