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_string2_h
= "$Id$";
36 #ident "@(#) string2.h 1.13 11/23/92"
37 #endif /* HAVE_IDENT */
55 #define COMMENTSIGN ';'
57 extern int continuing(char *s
);
59 extern char *fgets2(char *s
, int n
, FILE *stream
);
61 extern void strip_comment (char *line
);
63 extern int break_line (char *line
,
67 extern void upstring (char *str
);
69 extern void ltrim (char *str
);
71 extern void rtrim (char *str
);
73 extern void trim (char *str
);
75 extern void nice_header (FILE *out
,char *fn
);
77 extern int gmx_strcasecmp(const char *str1
, const char *str2
);
78 /* This funny version of strcasecmp, is not only case-insensitive,
79 * but also ignores '-' and '_'.
82 extern char *gmx_strdup(const char *src
);
84 #ifndef HAVE_STRCASECMP
85 #define strcasecmp gmx_strcasecmp
89 #define strdup gmx_strdup
92 extern char *wrap_lines(char *buf
,int line_width
, int indent
);
93 /* wraps lines at 'linewidth', indenting all following
94 * lines by 'indent' spaces. A temp buffer is allocated and returned,
95 * which can be disposed of if no longer needed.
102 #endif /* _string2_h */