~ubuntu-branches/ubuntu/dapper/asn1c/dapper

« back to all changes in this revision

Viewing changes to libasn1compiler/asn1c_compat.h

  • Committer: Bazaar Package Importer
  • Author(s): W. Borgert
  • Date: 2005-05-28 12:36:42 UTC
  • Revision ID: james.westby@ubuntu.com-20050528123642-3h6kstws5u0xcovl
Tags: upstream-0.9.14
ImportĀ upstreamĀ versionĀ 0.9.14

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef ASN1C_COMPAT_H
 
2
#define ASN1C_COMPAT_H
 
3
 
 
4
/*
 
5
 * Open the arbitrary file by its base name and extension.
 
6
 * If opt_tmpname is given, a temporary file will be created and
 
7
 * its name returned in (*opt_tmpname).
 
8
 * The (*opt_tmpname) should then be subsequently freed by free(3).
 
9
 */
 
10
FILE *asn1c_open_file(const char *base_part, const char *extension,
 
11
        char **opt_tmpname);
 
12
 
 
13
/*
 
14
 * Obtain base name and directory name of a path.
 
15
 * Some systems have them in <libgen.h> as dirname(3) and basename(3).
 
16
 */
 
17
char *a1c_basename(const char *path);
 
18
char *a1c_dirname(const char *path);
 
19
 
 
20
#endif  /* ASN1C_COMPAT_H */