noarch

package
v0.11.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2017 License: MIT Imports: 7 Imported by: 14

Documentation

Overview

Package noarch contains low-level functions that apply to multiple platforms.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Atoi added in v0.9.0

func Atoi(a string) int

func BoolToInt

func BoolToInt(x bool) int

func Fclose added in v0.9.0

func Fclose(f *File) int

func Feof added in v0.11.0

func Feof(f *File) int

func Fflush added in v0.11.0

func Fflush(f *File) int

func Fgetc added in v0.11.0

func Fgetc(f *File) int

func Fgetpos added in v0.11.0

func Fgetpos(f *File, pos *int) int

func Fgets added in v0.11.0

func Fgets(dest string, num int, f *File) string

func Fprintf added in v0.11.0

func Fprintf(f *File, format string, args ...interface{}) int

func Fputc added in v0.11.0

func Fputc(c int, f *File) int

func Fputs added in v0.11.0

func Fputs(content string, f *File) int

func Fread added in v0.11.0

func Fread(buffer *[]byte, size1, size2 int, f *File) int

func Fscanf added in v0.11.0

func Fscanf(f *File, format string, args ...interface{}) int

func Fseek added in v0.11.0

func Fseek(f *File, offset int32, origin int) int

func Fsetpos added in v0.11.0

func Fsetpos(f *File, pos *int) int

func Ftell added in v0.11.0

func Ftell(f *File) int32

func Fwrite added in v0.11.0

func Fwrite(buffer string, size1, size2 int, f *File) int

func Getchar added in v0.11.0

func Getchar() int

func NotInt

func NotInt(x int) int

func NotUint16 added in v0.9.0

func NotUint16(x uint16) uint16

func NullTerminatedByteSlice added in v0.11.0

func NullTerminatedByteSlice(s []byte) string

func NullTerminatedString added in v0.11.0

func NullTerminatedString(s string) string

func Remove added in v0.11.0

func Remove(filePath string) int

func Rename added in v0.11.0

func Rename(from, to string) int

func Rewind added in v0.11.0

func Rewind(f *File)

func Strlen added in v0.11.0

func Strlen(a string) int

func Strtol added in v0.9.0

func Strtol(a string, b string, c int) int32

func Ternary

func Ternary(a bool, b, c func() interface{}) interface{}

func Tmpnam added in v0.11.0

func Tmpnam(buffer string) string

Types

type File added in v0.11.0

type File struct {
	// This is not part of the original struct but it is needed for internal
	// calls in Go.
	OsFile *os.File
}

This definition has been translated from the original definition for __sFILE, which is an alias for FILE. Not all of the attributes have been translated. They should be turned on as needed.

func Fopen added in v0.9.0

func Fopen(filePath, mode string) *File

func NewFile added in v0.11.0

func NewFile(f *os.File) *File

func Tmpfile added in v0.11.0

func Tmpfile() *File

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL