# Improving on \[\*c\]u8 when calling a C function that allocates a string?

**URL:** <https://ziggit.dev/t/improving-on-c-u8-when-calling-a-c-function-that-allocates-a-string/2489>\
**Category:** Help\
**Created:** [December 17, 2023, 2:08pm UTC](https://ziggit.dev/t/improving-on-c-u8-when-calling-a-c-function-that-allocates-a-string/2489 "2023-12-17T14:08:08Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Luke](https://ziggit.dev/letter_avatar_proxy/v4/letter/l/7ab992/32.png) [@Luke](https://ziggit.dev/u/Luke)\
**Post date:** [December 17, 2023, 2:12pm UTC](https://ziggit.dev/t/improving-on-c-u8-when-calling-a-c-function-that-allocates-a-string/2489/2 "2023-12-17T14:12:54Z")

</div>

Maybe something like this:

```zig
[*:null]?[*:0]const u8

```

There was a related discussion on this recently: [Null terminated array of strings from C function - #4 by castholm](https://ziggit.dev/t/null-terminated-array-of-strings-from-c-function/2459/4)

---

_[View the full topic](https://ziggit.dev/t/improving-on-c-u8-when-calling-a-c-function-that-allocates-a-string/2489)._
