]> git.ipfire.org Git - thirdparty/git.git/blobdiff - git-compat-util.h
l10n: de.po: Update German translation for Git v2.28.0
[thirdparty/git.git] / git-compat-util.h
index a73632e8e43ce997f4bb2abf9c4e5520d2b078e2..5637114b8dcf41a2ab09a8f1787de53fc5a3a443 100644 (file)
@@ -868,6 +868,12 @@ char *xgetcwd(void);
 FILE *fopen_for_writing(const char *path);
 FILE *fopen_or_warn(const char *path, const char *mode);
 
+/*
+ * Like strncmp, but only return zero if s is NUL-terminated and exactly len
+ * characters long.  If it is not, consider it greater than t.
+ */
+int xstrncmpz(const char *s, const char *t, size_t len);
+
 /*
  * FREE_AND_NULL(ptr) is like free(ptr) followed by ptr = NULL. Note
  * that ptr is used twice, so don't pass e.g. ptr++.