version 1.35, 2022/06/03 19:46:09 |
version 1.36, 2022/09/21 01:42:59 |
|
|
|
|
char *qstring(const char *is, int delim) /* collect string up to next delim */ |
char *qstring(const char *is, int delim) /* collect string up to next delim */ |
{ |
{ |
const char *os = is; |
|
int c, n; |
int c, n; |
const uschar *s = (const uschar *) is; |
const uschar *s = (const uschar *) is; |
uschar *buf, *bp; |
uschar *buf, *bp; |
|
|
FATAL( "out of space in qstring(%s)", s); |
FATAL( "out of space in qstring(%s)", s); |
for (bp = buf; (c = *s) != delim; s++) { |
for (bp = buf; (c = *s) != delim; s++) { |
if (c == '\n') |
if (c == '\n') |
SYNTAX( "newline in string %.20s...", os ); |
SYNTAX( "newline in string %.20s...", is ); |
else if (c != '\\') |
else if (c != '\\') |
*bp++ = c; |
*bp++ = c; |
else { /* \something */ |
else { /* \something */ |