Commit e61b1cf0 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(prot_a_parse_skip_whitespace): New function.

parent 26691968
/*
* $Id: prot-a-parse.c,v 0.58 2003/07/12 22:26:34 ceder Exp $
* $Id: prot-a-parse.c,v 0.59 2003/08/04 11:58:35 ceder Exp $
* Copyright (C) 1991-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -42,6 +42,7 @@
#ifdef HAVE_STDLIB_H
# include <stdlib.h>
#endif
#include <string.h>
#include "oop.h"
......@@ -1105,3 +1106,12 @@ prot_a_hunt_array_end(Connection *client)
}
}
}
void
prot_a_parse_skip_whitespace(Connection *client)
{
while (client->first_to_parse < client->unparsed.len
&& strchr(WHITESPACE,
client->unparsed.string[client->first_to_parse]) != NULL)
client->first_to_parse++;
}
/*
* $Id: prot-a-parse.h,v 0.20 2002/12/30 14:09:44 ceder Exp $
* $Id: prot-a-parse.h,v 0.21 2003/08/04 11:58:31 ceder Exp $
* Copyright (C) 1991-1992, 1994-1999, 2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -23,7 +23,7 @@
* Please mail bug reports to bug-lyskom@lysator.liu.se.
*/
/*
* $Id: prot-a-parse.h,v 0.20 2002/12/30 14:09:44 ceder Exp $
* $Id: prot-a-parse.h,v 0.21 2003/08/04 11:58:31 ceder Exp $
*
*/
extern long
......@@ -92,3 +92,6 @@ prot_a_parse_info(Connection *client,
extern void
prot_a_hunt_nl(Connection *client);
extern void
prot_a_parse_skip_whitespace(Connection *client);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment