Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
e61b1cf0
Commit
e61b1cf0
authored
Aug 04, 2003
by
Per Cederqvist
Browse files
(prot_a_parse_skip_whitespace): New function.
parent
26691968
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/server/prot-a-parse.c
View file @
e61b1cf0
/*
* $Id: prot-a-parse.c,v 0.5
8
2003/0
7/12 22:26
:3
4
ceder Exp $
* $Id: prot-a-parse.c,v 0.5
9
2003/0
8/04 11:58
:3
5
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
++
;
}
src/server/prot-a-parse.h
View file @
e61b1cf0
/*
* $Id: prot-a-parse.h,v 0.2
0
200
2/12/30 14:09:44
ceder Exp $
* $Id: prot-a-parse.h,v 0.2
1
200
3/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.2
0
200
2/12/30 14:09:44
ceder Exp $
* $Id: prot-a-parse.h,v 0.2
1
200
3/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
);
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment