4 * This source code is part of
8 * GROningen MAchine for Chemical Simulations
12 * Copyright (c) 1991-2001
13 * BIOSON Research Institute, Dept. of Biophysical Chemistry
14 * University of Groningen, The Netherlands
16 * This program is free software; you can redistribute it and/or
17 * modify it under the terms of the GNU General Public License
18 * as published by the Free Software Foundation; either version 2
19 * of the License, or (at your option) any later version.
21 * If you want to redistribute modifications, please consider that
22 * scientific software is very special. Version control is crucial -
23 * bugs must be traceable. We will be happy to consider code for
24 * inclusion in the official distribution, but derived work must not
25 * be called official GROMACS. Details are found in the README & COPYING
26 * files - if they are missing, get the official version at www.gromacs.org.
28 * To help us fund GROMACS development, we humbly ask that you cite
29 * the papers on the package - you can find them in the top README file.
31 * Do check out http://www.gromacs.org , or mail us at gromacs@gromacs.org .
34 * Giving Russians Opium May Alter Current Situation
40 static char *SRCID_string2_h = "$Id$";
46 #ident "@(#) string2.h 1.13 11/23/92"
47 #endif /* HAVE_IDENT */
65 #define COMMENTSIGN ';'
67 extern int continuing(char *s);
69 extern char *fgets2(char *s, int n, FILE *stream);
71 extern void strip_comment (char *line);
73 extern int break_line (char *line,
77 extern void upstring (char *str);
79 extern void ltrim (char *str);
81 extern void rtrim (char *str);
83 extern void trim (char *str);
85 extern void nice_header (FILE *out,char *fn);
87 extern int strcasecmp_min(const char *str1, const char *str2);
88 /* This funny version of strcasecmp, is not only case-insensitive,
89 * but also ignores '-' and '_'.
92 extern int gmx_strcasecmp(const char *str1, const char *str2);
94 extern char *gmx_strdup(const char *src);
96 #ifndef HAVE_STRCASECMP
97 #define strcasecmp gmx_strcasecmp
101 #define strdup gmx_strdup
104 extern char *wrap_lines(char *buf,int line_width, int indent);
105 /* wraps lines at 'linewidth', indenting all following
106 * lines by 'indent' spaces. A temp buffer is allocated and returned,
107 * which can be disposed of if no longer needed.
114 #endif /* _string2_h */