Skip to content
Newer
Older
100644 49 lines (41 sloc) 1.95 KB
fd65cee @hzeller o add basic zita filter.
authored
1 // -------------------------------------------------------------------------
2 //
3 // Copyright (C) 2009-2010 Fons Adriaensen <fons@linuxaudio.org>
4 //
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 2 of the License, or
8 // (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 //
19 // -------------------------------------------------------------------------
20
21
22 #ifndef __SSTRING_H
23 #define __SSTRING_H
24
25
26 // Scan 'srce' for a possibly quoted string, returning the
27 // result in 'dest'. At most size-1 characters will be put
28 // into 'dest'; in all cases a terminating zero is added.
29 // Leading spaces and tabs are skipped. The string can be
30 // surrounded by either single or double quotes which will
31 // not be copied to 'dest'.
32 // Control characters terminate the input unconditionally.
33 // Spaces and tabs (which will be converted to a space) are
34 // accepted if the input is quoted or when escaped, and
35 // terminate the input otherwise.
36 // A '\' escapes the following character which means the '\'
37 // itself will not be inserted into 'dest', but the following
38 // char will be inserted even if it is a quote or a space, and
39 // will not terminate the input.
40 // Escapes are not accepted within a single-quoted string.
41 //
42 // Return value: the number of characters from 'srce' that
43 // were used, or 0 in case of any error.
44
45 extern int sstring (const char *srce, char *dest, int size);
46
47
48 #endif
Something went wrong with that request. Please try again.