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

Function ap_getword_nulls

server/util.c:779–799  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

777}
778
779AP_DECLARE(char *) ap_getword_nulls(apr_pool_t *atrans, const char **line,
780 char stop)
781{
782 const char *pos = ap_strchr_c(*line, stop);
783 char *res;
784
785 if (!pos) {
786 apr_size_t len = strlen(*line);
787 res = apr_pstrmemdup(atrans, *line, len);
788 *line += len;
789 return res;
790 }
791
792 res = apr_pstrmemdup(atrans, *line, pos - *line);
793
794 ++pos;
795
796 *line = pos;
797
798 return res;
799}
800
801/* Get a word, (new) config-file style --- quoted strings and backslashes
802 * all honored

Callers 9

split_argvFunction · 0.85
get_basic_authFunction · 0.85
proxy_ftp_handlerFunction · 0.85
ssl_hook_UserCheckFunction · 0.85
create_argvFunction · 0.85
default_build_commandFunction · 0.85
ap_get_basic_auth_pwFunction · 0.85
ap_getword_nulls_ncFunction · 0.85

Calls 1

ap_strchr_cFunction · 0.85

Tested by

no test coverage detected