diff options
| author | Shawn O. Pearce <spearce@spearce.org> | 2008-12-31 14:35:39 -0800 |
|---|---|---|
| committer | Shawn O. Pearce <spearce@spearce.org> | 2008-12-31 14:35:39 -0800 |
| commit | 9eb7976448bf684dfb41993ef6c76098978ff933 (patch) | |
| tree | 9ae72bd6780d6cd354719a1d84120e0690ffb5a7 /src/util.h | |
| parent | 8ed341c55ed4d6f4cdc8bf4f0ca18a08c93f6962 (diff) | |
| download | libgit2-9eb7976448bf684dfb41993ef6c76098978ff933.tar.gz | |
Add string utility functions for prefix and suffix compares
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'src/util.h')
| -rw-r--r-- | src/util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h index f269af47f..8e8169ce5 100644 --- a/src/util.h +++ b/src/util.h @@ -26,6 +26,9 @@ extern char *git__strdup(const char *); # define strdup(a) GIT__FORBID_MALLOC #endif +extern int git__prefixcmp(const char *str, const char *prefix); +extern int git__suffixcmp(const char *str, const char *suffix); + /* * Realloc the buffer pointed at by variable 'x' so that it can hold * at least 'nr' entries; the number of entries currently allocated |
