Displaying 1 result from an estimated 1 matches for "ascii_to_utf16l".
Did you mean:
ascii_to_utf16le
2014 Jun 24
2
[syslinux:master] isohybrid: Function to write UTF-16LE strings
...t; err(1, "error while reading MBR template file `%s'", path);
> fclose(fp);
> }
Shouldn't that be in a separate commit?
> @@ -786,6 +786,21 @@ reverse_uuid(uuid_t uuid)
> t = p[6]; p[6] = p[7]; p[7] = t;
> }
>
> +static uint16_t *
> +ascii_to_utf16le(uint16_t *dst, const char *src)
> +{
> + uint8_t *p = (uint8_t *)dst;
> + char c;
> +
> + do {
> + c = *src++;
> + *p++ = c;
> + *p++ = 0;
> + } while (c);
> +
> + return (uint16_t *)p;
> +}
> +
> void
> initialise_gpt(uint8_t *gpt, uin...