File: asn1c_compat.h

package info (click to toggle)
asn1c 0.9.28%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 6,948 kB
  • sloc: ansic: 34,066; makefile: 7,820; sh: 2,089; yacc: 2,040; lex: 593; perl: 97; cpp: 13
file content (20 lines) | stat: -rw-r--r-- 609 bytes parent folder | download | duplicates (6)
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

/*
 * Open the arbitrary file by its base name and extension.
 * If opt_tmpname is given, a temporary file will be created and
 * its name returned in (*opt_tmpname).
 * The (*opt_tmpname) should then be subsequently freed by free(3).
 */
FILE *asn1c_open_file(const char *base_part, const char *extension,
	char **opt_tmpname);

/*
 * 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 */