MCPcopy Create free account
hub / github.com/coreboot/coreboot / to_uchars

Function to_uchars

util/smmstoretool/utils.c:49–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49CHAR16 *to_uchars(const char chars[], size_t *size)
50{
51 *size = (strlen(chars) + 1) * 2;
52 CHAR16 *uchars = xmalloc(*size);
53
54 const char *from = chars;
55 CHAR16 *to = uchars;
56 while (*from != '\0')
57 *to++ = *from++;
58 *to = 0;
59
60 return uchars;
61}
62
63bool str_eq(const char lhs[], const char rhs[])
64{

Callers 3

make_dataFunction · 0.85
vs_findFunction · 0.85
process_setFunction · 0.85

Calls 2

strlenFunction · 0.85
xmallocFunction · 0.70

Tested by

no test coverage detected