efi_loader: definition of GetNextVariableName()
[oweals/u-boot.git] / lib / libavb / avb_sysdeps.h
index 345c2b29a6a0a6e1d32cb6e1a106be8b3a6398ac..f52428cc622f6d22b66c11c83c9d7efdbc30eaab 100644 (file)
@@ -1,7 +1,6 @@
+/* SPDX-License-Identifier: MIT */
 /*
  * Copyright (C) 2016 The Android Open Source Project
- *
- * SPDX-License-Identifier:    MIT
  */
 
 #if !defined(AVB_INSIDE_LIBAVB_H) && !defined(AVB_COMPILATION)
@@ -54,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);