Rev 3120 | Rev 5056 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3120 | Rev 4065 | ||
---|---|---|---|
Line 140... | Line 140... | ||
140 | return strncmp(str, prefix, strlen(prefix)) == 0; |
140 | return strncmp(str, prefix, strlen(prefix)) == 0; |
141 | } |
141 | } |
Line 142... | Line 142... | ||
142 | 142 | ||
Line -... | Line 143... | ||
- | 143 | extern size_t memweight(const void *ptr, size_t bytes); |
|
- | 144 | ||
- | 145 | /** |
|
- | 146 | * kbasename - return the last part of a pathname. |
|
- | 147 | * |
|
- | 148 | * @path: path to extract the filename from. |
|
- | 149 | */ |
|
- | 150 | static inline const char *kbasename(const char *path) |
|
- | 151 | { |
|
- | 152 | const char *tail = strrchr(path, '/'); |
|
- | 153 | return tail ? tail + 1 : path; |
|
143 | extern size_t memweight(const void *ptr, size_t bytes); |
154 | } |