]> git.mxchange.org Git - flightgear.git/blob - Scenery/common.c
Merged in make system changes from Bob Kuehne <rpk@sgi.com>
[flightgear.git] / Scenery / common.c
1 /**************************************************************************
2  * common.c -- common utilities and support routines for the parser
3  *
4  * Written by Curtis Olson, started May 1997.
5  *
6  * Copyright (C) 1997  Curtis L. Olson  - curt@infoplane.com
7  *
8  * This program is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License as
10  * published by the Free Software Foundation; either version 2 of the
11  * License, or (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful, but
14  * WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21  *
22  * $Id$
23  * (Log is kept at end of this file)
24  **************************************************************************/
25
26
27 #ifdef WIN32
28 #include <string.h>
29 #endif
30
31 #include <Scenery/common.h>
32
33
34 /* strip the enclosing quotes from a string, works within the current
35    string and thus is destructive. "hello" ==> hello */
36 char *strip_quotes(char *s) {
37     int len;
38
39     /* strip first character */
40     s++;
41
42     /* toast last character */
43     len = strlen(s);
44     s[len-1] = '\0';
45
46     return(s);
47 }
48
49
50 /* $Log$
51 /* Revision 1.4  1998/01/19 19:27:14  curt
52 /* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
53 /* This should simplify things tremendously.
54 /*
55  * Revision 1.3  1998/01/06 01:20:23  curt
56  * Tweaks to help building with MSVC++
57  *
58  * Revision 1.2  1997/05/23 15:40:41  curt
59  * Added GNU copyright headers.
60  *
61  * Revision 1.1  1997/05/16 16:07:03  curt
62  * Initial revision.
63  *
64  */