Name

ap_find_last_token — check if the last token is a particular string

Synopsis

int ap_find_last_token(pool *p, const char *line, const char *tok)

Checks whether the end of line matches tok and whether tok is preceded by a space or a comma. Returns 1 if so, 0 otherwise.

Get Apache: The Definitive Guide, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.