| 721 | } |
| 722 | |
| 723 | AP_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 | |
| 746 | AP_DECLARE(char *) ap_getword_white_nc(apr_pool_t *atrans, char **line) |
| 747 | { |
no outgoing calls
no test coverage detected