4 * This source code is part of
8 * GROningen MAchine for Chemical Simulations
12 * Copyright (c) 1991-1999
13 * BIOSON Research Institute, Dept. of Biophysical Chemistry
14 * University of Groningen, The Netherlands
17 * GROMACS: A message-passing parallel molecular dynamics implementation
18 * H.J.C. Berendsen, D. van der Spoel and R. van Drunen
19 * Comp. Phys. Comm. 91, 43-56 (1995)
21 * Also check out our WWW page:
22 * http://md.chem.rug.nl/~gmx
27 * Green Red Orange Magenta Azure Cyan Skyblue
33 static char *SRCID_strdb_h = "$Id$";
40 #ident "@(#) strdb.h 1.9 2/2/97"
41 #endif /* HAVE_IDENT */
45 extern bool get_a_line(FILE *fp,char line[],int n);
46 /* Read a line of at most n characters form *fp to line.
47 * Comment ';...' and leading spaces are removed, empty lines are skipped.
48 * Return FALSE when eof.
51 extern bool get_header(char line[],char header[]);
52 /* Read a header between '[' and ']' from line to header.
53 * Returns FALSE no header is found.
56 extern int fget_lines(FILE *in,char ***strings);
57 /* Read an array of lines from file in. strings should be
58 * the address of an array of strings (to be malloced by this routine)
59 * return the number of strings.
61 extern int get_lines(char *db,char ***strings);
62 /* Open file db, or if non-existant file $GMXLIB/db and read strings
63 * return the number of strings.
66 extern int search_str(int nstr,char **str,char *key);
67 /* Search an array of strings for key, return the index if found
71 extern int get_strings(char *db,char ***strings);
72 /* Read an array of strings from file db or $GMXLIB/db. strings should be
73 * the address of an array of strings (to be malloced by this routine)
74 * return the number of strings.
76 extern int get_file(char *db,char ***strings);
77 /* Read an array of strings from file db or $GMXLIB/db. strings should be
78 * the address of an array of strings (to be malloced by this routine)
79 * Does not need number of lines as first line in the file.
80 * return the number of strings.