1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 #ifndef SMMSTORETOOL__UTILS_H__
4 #define SMMSTORETOOL__UTILS_H__
17 void *xmalloc(size_t size
);
19 char *to_chars(const CHAR16 uchars
[], size_t size
);
21 CHAR16
*to_uchars(const char chars
[], size_t *size
);
23 bool str_eq(const char lhs
[], const char rhs
[]);
25 struct mem_range_t
map_file(const char path
[], bool rw
);
27 void unmap_file(struct mem_range_t store
);
29 #endif // SMMSTORETOOL__UTILS_H__