4 * Copyright (C) 2013 Denys Vlasenko
6 * Licensed under GPLv2, see file LICENSE in this source tree.
9 //kbuild:lib-y += endofname.o
13 #define is_name(c) ((c) == '_' || isalpha((unsigned char)(c)))
14 #define is_in_name(c) ((c) == '_' || isalnum((unsigned char)(c)))
17 endofname(const char *name)
22 if (!is_in_name(*name))