Adapted from @dimdin’s post: Convert []const u8 to [*:0]const u8 - #2 by dimdin
This needs more examples and explanations.