efi_loader: definition of GetNextVariableName()
[oweals/u-boot.git] / lib / libavb / avb_sysdeps.h
index f032de4a2e05410116396686b5735b349fdf438c..f52428cc622f6d22b66c11c83c9d7efdbc30eaab 100644 (file)
@@ -53,6 +53,14 @@ int avb_memcmp(const void* src1,
  */
 int avb_strcmp(const char* s1, const char* s2);
 
+/* Compare |n| bytes in two strings.
+ *
+ * Return an integer less than, equal to, or greater than zero if the
+ * first |n| bytes of |s1| is found, respectively, to be less than,
+ * to match, or be greater than the first |n| bytes of |s2|.
+ */
+int avb_strncmp(const char* s1, const char* s2, size_t n);
+
 /* Copy |n| bytes from |src| to |dest|. */
 void* avb_memcpy(void* dest, const void* src, size_t n);