FreeBSD/sys/boot/efi/loader/main.c
/*
 * cpy8to16 copies a traditional C string into a CHAR16 string and
 * 0 terminates it. len is the size of *dst in bytes.
 */
cpy8to16 copies a traditional C string into a CHAR16 string and
0 terminates it. len is the size of *dst in bytes.
cpy8to16 copies a traditional C string into a CHAR16 string and 0 terminates it . len is the size of * dst in bytes .
static void
cpy8to16(const char *src, CHAR16 *dst, size_t len)
{
	len <<= 1;		
	while (len > 0 && *src) {
		*dst++ = *src++;
		len--;
	}
	*dst++ = (CHAR16)0;
}
static void cpy8to16 ( const char * src , CHAR16 * dst , size_t len ) { len <<= 1 ; while ( len > 0 && * src ) { * dst ++ = * src ++ ; len -- ; } * dst ++ = ( CHAR16 ) 0 ; }
cpy8to16 copies a traditional C string into a CHAR16 string and
 0 terminates it.
cpy8to16 copies a traditional C string into a CHAR16 string and 0 terminates it .
/* Assume CHAR16 is 2 bytes */