File: dumplib.h

package info (click to toggle)
libhdf4 4.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 29,892 kB
  • sloc: ansic: 128,688; sh: 14,969; fortran: 12,444; java: 5,864; xml: 1,305; makefile: 900; yacc: 678; pascal: 418; perl: 360; javascript: 203; lex: 163; csh: 41
file content (53 lines) | stat: -rw-r--r-- 1,456 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*********************************************************************
 *   Copyright 1993, University Corporation for Atmospheric Research
 *   See netcdf/COPYRIGHT file for copying and redistribution conditions.
 *********************************************************************/

#ifndef NCDUMP_DUMPLIB_H
#define NCDUMP_DUMPLIB_H

extern char *progname; /* for error messages */

#ifdef __cplusplus
extern "C" {
#endif

/* Print error message to stderr, don't exit */
extern void error(const char *fmt, ...);

/* set position in line before lput() calls */
extern void set_indent(int indent);

/* set maximum line length */
extern void set_max_len(int len);

/* splits lines to keep them short */
extern void lput(const char *string);

/* In case different formats specified with -d option, set them here. */
extern void set_formats(char *flt_fmt, char *dbl_fmt);

/* Determine print format to use for each value for this variable. */
const char *get_fmt(int ncid, int varid, nc_type type);

/* structure for list of variables specified with -v option */
struct vnode {
    struct vnode *next;
    int           id;
};
typedef struct vnode vnode;

/* Get new variable list */
extern vnode *newvlist(void);

/* Add a variable id to variable list */
extern void varadd(vnode *vlist, int varid);

/* Test if a variable id is in variable list */
extern int varmember(vnode *vlist, int varid);

#ifdef __cplusplus
}
#endif

#endif /* NCDUMP_DUMPLIB_H */