1 #include "config_filter.h"
5 int config_filter(const char *name
)
9 static const char *const skip_prefix
[] = {
15 static const char *const skip_suffix
[] = {
33 for (p
= skip_prefix
; *p
; p
++) {
34 if (strncmp(name
, *p
, strlen(*p
)) == 0)
38 for (p
= skip_suffix
; *p
; p
++) {
39 if (strlen(name
) >= strlen(*p
) &&
40 strcmp(*p
, strchr(name
, 0) - strlen(*p
)) == 0)