| 777 | } |
| 778 | |
| 779 | AP_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 |
no test coverage detected