1 /*
2  * Copyright (C) 1996-2021 The Squid Software Foundation and contributors
3  *
4  * Squid software is distributed under GPLv2+ license and includes
5  * contributions from numerous individuals and organizations.
6  * Please see the COPYING and CONTRIBUTORS files for details.
7  */
8 
9 #ifndef COMPAT_STRNRCHR_H_
10 #define COMPAT_STRNRCHR_H_
11 
12 #if HAVE_STDDEF_H
13 #include <stddef.h>
14 #endif
15 
16 /**
17  * look for the last occurrence of a character in a c-string.
18  *
19  * Scanning starts at the beginning of the c-string, and ends
20  * after count bytes or at the end of the c-string, whichever happens first
21  */
22 SQUIDCEXTERN const char *strnrchr(const char *s, size_t count, int c);
23 
24 #endif /* COMPAT_STRNRCHR_H_ */
25 
26