httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Schaefer <joe+apa...@sunstarsys.com>
Subject Re: my_urlword
Date Thu, 20 Jun 2002 05:11:54 GMT
Graham Barr <gbarr@pobox.com> writes:

[...]

> static char *my_urlword(pool *p, const char **line)
> {
>     char *pos = *line;
      char *res = NULL;
>     char ch;
> 
>     while ((ch = *pos) != NULL && ch != ';' && ch != '&')) {
      while ( (ch = *pos) != '\0' && ch != ';' && ch != '&') {
> 	++pos;
>     }
> 
>     res = ap_pstrndup(p, *line, pos - *line);
> 
>     while (ch == ';' || ch == '&') {
> 	++pos;
> 	ch = *pos;
>     }
> 
>     *line = pos;
> 
>     return res;
> }

Thanks- patch applied with changes noted above.

-- 
Joe Schaefer

Mime
View raw message