Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 140527
b: refs/heads/master
c: 66f92cf
h: refs/heads/master
i:
  140525: c3349e1
  140523: 4a3150a
  140519: b028843
  140511: 56ddcb7
v: v3
  • Loading branch information
Rusty Russell committed Mar 31, 2009
1 parent 94173bb commit fea1104
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: aa0d3bb77e780054babcd289484cf4c15180111b
refs/heads/master: 66f92cf9d415e96a5bdd6c64de8dd8418595d2fc
9 changes: 9 additions & 0 deletions trunk/include/linux/string.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,5 +114,14 @@ extern bool sysfs_streq(const char *s1, const char *s2);
extern ssize_t memory_read_from_buffer(void *to, size_t count, loff_t *ppos,
const void *from, size_t available);

/**
* strstarts - does @str start with @prefix?
* @str: string to examine
* @prefix: prefix to look for.
*/
static inline bool strstarts(const char *str, const char *prefix)
{
return strncmp(str, prefix, strlen(prefix)) == 0;
}
#endif
#endif /* _LINUX_STRING_H_ */

0 comments on commit fea1104

Please sign in to comment.