# translate-c: allow string literals to be used as \`char \*\` · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/3b2520583390c7ebbb1e1ea458c9ced04180d9c4)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 3b2520583390c7ebbb1e1ea458c9ced04180d9c4

Requested commit: 3b2520583390c7ebbb1e1ea458c9ced04180d9c4

Commit: 3b2520583390c7ebbb1e1ea458c9ced04180d9c4

Tree: 9bd342ec64c9f1852a3ef49f85bc201d15232248

Author: Evan Haas

Committer: Veikka Tuominen

## Message

```
translate-c: allow string literals to be used as `char *`

In C the type of string literals is `char *`, so when using them in
a non-const context we have to cast the const away.

Fixes #9126

```

## Parents

- [d57c0cc3bfeff9af297279759ec2b631e6d95140](https://git.cafe/gitcafe/zig/commit/d57c0cc3bfeff9af297279759ec2b631e6d95140?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/3b2520583390c7ebbb1e1ea458c9ced04180d9c4?format=markdown)
