Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/cgo: variadic parameters not working with C.char #25143
What version of Go are you using (
I can reproduce the issue with the above code in Go1.10. I don't know why it fails. I seem to recall, that Go cannot call C variadic functions but I cannot find that mentioned in the CGO docs at https://golang.org/cmd/cgo/.
However, in this case