mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-14 07:53:40 +00:00
cgo: add support for C.CString and related functions
This commit is contained in:
committed by
Ron Evans
parent
6bd18af5ef
commit
c31aef06ba
Vendored
+7
@@ -61,5 +61,12 @@ option 2A: 20
|
||||
option 3A: 21
|
||||
enum width matches: true
|
||||
CFLAGS value: 17
|
||||
cstr length: 18
|
||||
C.CString: string passed to C
|
||||
C.charBuf: 2 0 4 8
|
||||
C.CStringN: 4 2 0 4 8
|
||||
C.GoString(nil):
|
||||
len(C.GoStringN(nil, 0)): 0
|
||||
len(C.GoBytes(nil, 0)): 0
|
||||
copied string: foobar
|
||||
line written using C puts
|
||||
|
||||
Reference in New Issue
Block a user