blob: dbb07e84fe43cb4e8dbe03213acd114d64955963 [file] [log] [blame]
Francisco Souza60b98d62012-03-13 09:07:37 +11001// Copyright 2012 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
Josh Bleecher Snyder5451fff2015-04-02 08:53:27 -07004
Francisco Souza60b98d62012-03-13 09:07:37 +11005package print
6
7// #include <stdio.h>
8// #include <stdlib.h>
9import "C"
10import "unsafe"
11
12func Print(s string) {
13 cs := C.CString(s)
14 defer C.free(unsafe.Pointer(cs))
15 C.fputs(cs, (*C.FILE)(C.stdout))
16}
17
18// END OMIT