diff options
author | Tom Rini <trini@konsulko.com> | 2019-02-13 07:12:29 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-02-13 07:12:29 -0500 |
commit | 63f7e3fca391a50a499fed828fe16325fdee45f3 (patch) | |
tree | 6214d5fe9a24d21b9a729a1bda3fdd22e442d298 /include/charset.h | |
parent | b1b1bab7f92b838a252ab977f56d9c3584c14fb7 (diff) | |
parent | 823c233b7ab95169ea4428b2821b72b8887b47b0 (diff) |
Merge tag 'signed-efi-next' of git://github.com/agraf/u-boot
Patch queue for efi - 2019-02-13
Goodness this time around:
- HII protocol, finally allows us to run the UEFI Shell!
(experimantal, disabled by default)
- efi selftest now available on Cortex-M
- NVMe support for distro boot
- Lots of code cleanup
Diffstat (limited to 'include/charset.h')
-rw-r--r-- | include/charset.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/charset.h b/include/charset.h index 4d45e246e5..65087f76d1 100644 --- a/include/charset.h +++ b/include/charset.h @@ -192,6 +192,29 @@ size_t u16_strlen(const u16 *in); size_t u16_strnlen(const u16 *in, size_t count); /** + * u16_strcpy() - copy u16 string + * + * Copy u16 string pointed to by src, including terminating null word, to + * the buffer pointed to by dest. + * + * @dest: destination buffer + * @src: source buffer (null terminated) + * Return: 'dest' address + */ +u16 *u16_strcpy(u16 *dest, const u16 *src); + +/** + * u16_strdup() - duplicate u16 string + * + * Copy u16 string pointed to by src, including terminating null word, to a + * newly allocated buffer. + * + * @src: source buffer (null terminated) + * Return: allocated new buffer on success, NULL on failure + */ +u16 *u16_strdup(const u16 *src); + +/** * utf16_to_utf8() - Convert an utf16 string to utf8 * * Converts 'size' characters of the utf16 string 'src' to utf8 |