]> git.mxchange.org Git - flightgear.git/blob - Scenery/common.c
a1009bac9fa6bef8c822cdb0b16c3c1f73cf2c3f
[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  * $Id$
7  * (Log is kept at end of this file)
8  **************************************************************************/
9
10
11 #include "common.h"
12
13
14 /* strip the enclosing quotes from a string, works within the current
15    string and thus is destructive. "hello" ==> hello */
16 char *strip_quotes(char *s) {
17     int len;
18
19     /* strip first character */
20     s++;
21
22     /* toast last character */
23     len = strlen(s);
24     s[len-1] = '\0';
25
26     return(s);
27 }
28
29
30 /* $Log$
31 /* Revision 1.1  1997/05/16 16:07:03  curt
32 /* Initial revision.
33 /*
34  */