File: CNstring.h

package info (click to toggle)
plotmtv 1.4.1-4
  • links: PTS
  • area: main
  • in suites: slink
  • size: 4,024 kB
  • ctags: 5,006
  • sloc: ansic: 51,179; makefile: 1,976; fortran: 1,277; sh: 510; csh: 439
file content (67 lines) | stat: -rw-r--r-- 1,723 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
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*
 * CNstring.h - external procedure declarations for string utilities 
 */

#ifndef CNstring_defined
#define CNstring_defined

#define CN_BOOLEAN 1
#define CN_SHORT   2
#define CN_INTEGER 3
#define CN_FLOAT   4
#define CN_DOUBLE  5
#define CN_STRING  6

typedef struct CNkeyword_strct {
   char   *keyword;
   int    keyval;
   int    keytype;
   int    chkmin, chkmax;
   int    ival, imin, imax;
   double dval, dmin, dmax;
} CNkeyword;

/* Read and manipulate words */
extern int   CNgetline();
extern int   CNget_uncommented_line();
#define      CNgetucline CNget_uncommented_line
extern int   CNuncomment_line();
extern int   CNskip_blanks();
extern int   CNget2words();
extern int   CNgetwords();
extern int   CNgetwords2();
extern void  CNsaveword();
extern void  CNprint_words();
extern void  CNfreewords();
extern int   CNparse_line();
extern int   CNfill_argval_tables();
extern void  CNdownshift();
extern int   CNparse_pairs();

/* Assign variables */
extern void  CNprint_keywords();
extern void  CNassign_boolean_keyword();
extern void  CNassign_short_keyword();
extern void  CNassign_int_keyword();
extern void  CNassign_float_keyword();
extern void  CNassign_double_keyword();
extern void  CNassign_string_keyword();

/* Work on strings */
extern int   CNstrlen();
extern char *CNcreate_string();
extern void  CNdestroy_string();
extern char *CNstring_concat();
extern void  CNstring_to_upper();
extern void  CNstring_to_lower();
extern int   CNstring_to_boolean();

/* Read strings and files */
extern int          CNrd_dbl();
extern int          CNread_option();
extern void         CNerr_message();
extern int          CNopen_file();
extern void         CNclose_file();

#endif /* CNstring_defined */