MCPcopy Create free account
hub / github.com/apache/httpd / ap_getword

Function ap_getword

server/util.c:723–744  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

721}
722
723AP_DECLARE(char *) ap_getword(apr_pool_t *atrans, const char **line, char stop)
724{
725 const char *pos = *line;
726 int len;
727 char *res;
728
729 while ((*pos != stop) && *pos) {
730 ++pos;
731 }
732
733 len = pos - *line;
734 res = apr_pstrmemdup(atrans, *line, len);
735
736 if (stop) {
737 while (*pos == stop) {
738 ++pos;
739 }
740 }
741 *line = pos;
742
743 return res;
744}
745
746AP_DECLARE(char *) ap_getword_white_nc(apr_pool_t *atrans, char **line)
747{

Callers 15

ssl_io_filter_UpgradeFunction · 0.85
ap_set_byterangeFunction · 0.85
find_ctFunction · 0.85
get_basic_authFunction · 0.85
check_passwordFunction · 0.85
get_realm_hashFunction · 0.85
groups_for_userFunction · 0.85
proxy_ftp_handlerFunction · 0.85
translate_userdirFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected