diff options
-rw-r--r-- | EmbeddedPkg/Include/libfdt_env.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/EmbeddedPkg/Include/libfdt_env.h b/EmbeddedPkg/Include/libfdt_env.h index 7feff52..c35ac73 100644 --- a/EmbeddedPkg/Include/libfdt_env.h +++ b/EmbeddedPkg/Include/libfdt_env.h @@ -76,8 +76,16 @@ static inline size_t strnlen (const char* str, size_t strsz ) { return AsciiStrnLenS (str, strsz);
}
+static inline size_t strcmp (const char* str1, const char* str2) {
+ return AsciiStrCmp (str1, str2);
+}
+
static inline size_t strncmp (const char* str1, const char* str2, size_t strsz ) {
return AsciiStrnCmp (str1, str2, strsz);
}
+static inline size_t strncpy (char* dest, const char* source, size_t dest_max) {
+ return AsciiStrCpyS (dest, dest_max, source);
+}
+
#endif /* _LIBFDT_ENV_H */
|