changed reading hint
[gromacs/adressmacs.git] / include / string2.h
blob656eaf582e8a1ff3fe4b5e527b346ea4bcfb032f
1 /*
2 * $Id$
3 *
4 * This source code is part of
5 *
6 * G R O M A C S
7 *
8 * GROningen MAchine for Chemical Simulations
9 *
10 * VERSION 2.0
12 * Copyright (c) 1991-1999
13 * BIOSON Research Institute, Dept. of Biophysical Chemistry
14 * University of Groningen, The Netherlands
16 * Please refer to:
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
23 * or e-mail to:
24 * gromacs@chem.rug.nl
26 * And Hey:
27 * Green Red Orange Magenta Azure Cyan Skyblue
30 #ifndef _string2_h
31 #define _string2_h
33 static char *SRCID_string2_h = "$Id$";
35 #ifdef HAVE_IDENT
36 #ident "@(#) string2.h 1.13 11/23/92"
37 #endif /* HAVE_IDENT */
41 * string2.h
42 * David van der Spoel
46 #ifdef CPLUSPLUS
47 extern "C" {
48 #endif
50 #include <string.h>
51 #include <stdio.h>
52 #include "typedefs.h"
54 #define CONTINUE '\\'
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,
64 char *variable,
65 char *value);
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
86 #endif
88 #ifndef HAVE_STRDUP
89 #define strdup gmx_strdup
90 #endif
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.
98 #ifdef CPLUSPLUS
100 #endif
102 #endif /* _string2_h */