Rev 2967 | Rev 4065 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2967 | Rev 3120 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #ifndef _LINUX_STRING_H_ |
1 | #ifndef _LINUX_STRING_H_ |
2 | #define _LINUX_STRING_H_ |
2 | #define _LINUX_STRING_H_ |
Line 3... | Line -... | ||
3 | - | ||
4 | /* We don't want strings.h stuff being used by user stuff by accident */ |
- | |
5 | - | ||
6 | #ifndef __KERNEL__ |
- | |
7 | #include |
- | |
Line 8... | Line 3... | ||
8 | #else |
3 | |
9 | 4 | ||
10 | #include |
5 | #include |
11 | #include |
6 | #include |
Line 142... | Line 137... | ||
142 | */ |
137 | */ |
143 | static inline bool strstarts(const char *str, const char *prefix) |
138 | static inline bool strstarts(const char *str, const char *prefix) |
144 | { |
139 | { |
145 | return strncmp(str, prefix, strlen(prefix)) == 0; |
140 | return strncmp(str, prefix, strlen(prefix)) == 0; |
146 | } |
141 | } |
- | 142 | ||
- | 143 | extern size_t memweight(const void *ptr, size_t bytes); |
|
147 | #endif |
144 | |
148 | #endif /* _LINUX_STRING_H_ */ |
145 | #endif /* _LINUX_STRING_H_ */ |