# 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:** 4

<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:34pm UTC](https://ziggit.dev/t/improving-on-c-u8-when-calling-a-c-function-that-allocates-a-string/2489/4 "2023-12-17T14:34:42Z")

</div>

Ok, what about then?:

```zig
    var x: ?[*:0]u8 = null;

```

---

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