github.com/notti/go-dynamic@v0.0.0-20190619201224-fc443047424c/steps/2_go/test/_obj/main.cgo1.go (about) 1 // Code generated by cmd/cgo; DO NOT EDIT. 2 3 //line main.go:1:1 4 package main 5 6 // #include <stdio.h> 7 // #include <stdlib.h> 8 // #include <string.h> 9 import _ "unsafe" 10 11 import "unsafe" 12 13 func main() { 14 cs := []byte("Hello\000 world\000") 15 (_Cfunc_puts)((*_Ctype_char)(unsafe.Pointer(&cs[0]))) 16 func(_cgo0 *_Ctype_char, _cgo1 *_Ctype_struct__IO_FILE) _Ctype_int {; _cgoCheckPointer(_cgo1); return (_Cfunc_fputs)(_cgo0, _cgo1);}((*_Ctype_char)(unsafe.Pointer(&cs[0])), (_Cmacro_stdout())) 17 func(_cgo0 _Ctype_int, _cgo1 *_Ctype_struct__IO_FILE) _Ctype_int {; _cgoCheckPointer(_cgo1); return (_Cfunc_putc)(_cgo0, _cgo1);}('a', (_Cmacro_stdout())) 18 (_Cfunc_strcat)((*_Ctype_char)(unsafe.Pointer(&cs[0])), (*_Ctype_char)(unsafe.Pointer(&cs[0]))) 19 (_Cfunc_puts)((*_Ctype_char)(unsafe.Pointer(&cs[0]))) 20 }