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