diff options
| author | Bartosz Golaszewski <bartekgola@gmail.com> | 2015-08-25 13:10:00 +0200 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2015-08-25 15:04:16 +0200 |
| commit | 0a4d0e8fbf119e61f7223ac00a42505abf7eb168 (patch) | |
| tree | b268f441b0c1053b50bf9e95f3c5bc9c28146d7d /libbb | |
| parent | b432923e29dcd8c6f3a528bb9d61952de68e790c (diff) | |
| download | busybox-w32-0a4d0e8fbf119e61f7223ac00a42505abf7eb168.tar.gz busybox-w32-0a4d0e8fbf119e61f7223ac00a42505abf7eb168.tar.bz2 busybox-w32-0a4d0e8fbf119e61f7223ac00a42505abf7eb168.zip | |
libbb: add a comment describing the way is_prefixed_with() works
Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb')
| -rw-r--r-- | libbb/compare_string_array.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libbb/compare_string_array.c b/libbb/compare_string_array.c index 450916c3a..cdcb2718d 100644 --- a/libbb/compare_string_array.c +++ b/libbb/compare_string_array.c | |||
| @@ -5,6 +5,11 @@ | |||
| 5 | 5 | ||
| 6 | #include "libbb.h" | 6 | #include "libbb.h" |
| 7 | 7 | ||
| 8 | /* | ||
| 9 | * Return NULL if string is not prefixed with key. Return pointer to the | ||
| 10 | * first character in string after the prefix key. If key is an empty string, | ||
| 11 | * return pointer to the beginning of string. | ||
| 12 | */ | ||
| 8 | char* FAST_FUNC is_prefixed_with(const char *string, const char *key) | 13 | char* FAST_FUNC is_prefixed_with(const char *string, const char *key) |
| 9 | { | 14 | { |
| 10 | #if 0 /* Two passes over key - probably slower */ | 15 | #if 0 /* Two passes over key - probably slower */ |
