mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
modpost: move strstarts() to modpost.h
This macro is useful in file2alias.c as well. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
This commit is contained in:
@@ -67,6 +67,8 @@
|
||||
|
||||
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
|
||||
|
||||
#define strstarts(str, prefix) (strncmp(str, prefix, strlen(prefix)) == 0)
|
||||
|
||||
struct buffer {
|
||||
char *p;
|
||||
int pos;
|
||||
|
||||
Reference in New Issue
Block a user