Files
linux-legacy/include/linux
Rusty Russell 66f92cf9d4 strstarts: helper function for !strncmp(str, prefix, strlen(prefix))
Impact: minor new API

ksplice added a "starts_with" function, which seems like a common need.
When people open-code it they seem to use fixed numbers rather than strlen,
so it's quite a readability win (also, strncmp() almost always wants != 0
on it).

So here's strstarts().

Cc: Anders Kaseorg <andersk@mit.edu>
Cc: Jeff Arnold <jbarnold@mit.edu>
Cc: Tim Abbott <tabbott@mit.edu>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2009-03-31 13:05:36 +10:30
..
2009-03-18 19:45:11 -07:00
2009-03-05 14:39:32 -05:00
2009-03-27 14:43:57 -04:00
2009-03-27 14:43:59 -04:00
2009-03-01 00:19:35 -08:00
2009-03-16 08:32:27 -06:00
2009-03-24 12:35:17 +01:00
2009-03-13 14:32:29 +01:00
2009-03-28 23:55:59 -07:00
2009-03-24 22:52:39 -04:00
2009-03-26 10:56:35 -07:00
2009-03-15 19:59:13 -07:00
2009-03-27 14:43:59 -04:00
2009-03-27 14:43:59 -04:00
2009-03-10 20:33:18 -04:00
2009-03-13 16:09:12 -07:00
2009-03-26 02:18:35 +01:00
2009-02-26 23:42:11 -08:00
2009-03-30 14:28:58 -07:00
2009-02-27 16:53:50 +09:00
2009-03-26 18:14:21 +01:00