]> Cypherpunks repositories - gostls13.git/commit
cgo: add C.GoStringN
authorEric Clark <zerohp@gmail.com>
Thu, 19 Aug 2010 02:29:05 +0000 (22:29 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 19 Aug 2010 02:29:05 +0000 (22:29 -0400)
commit95fa16a892f3ca8393813ad7dcf988356927177b
tree5688b142e4ee1634ebdb1f0b6e033c66c2014c5c
parent6e7629874424faa5491c74e20617df28db1f4ba8
cgo: add C.GoStringN

Function to create a GoString with a known length so it can contain NUL
bytes anywhere in the string. Some C libraries have strings like this.

R=rsc
CC=golang-dev
https://golang.org/cl/2007042
src/cmd/cgo/out.go
src/pkg/runtime/runtime.h
src/pkg/runtime/string.goc