C and Go equivalents

Equivalents in C and Go.

C Go Notes
strncmp (a, b, n) a[0:n] == b[0:n]
__LINE__ _, _, line, _ := runtime.Caller(0) import runtime
__FILE__ _, file, _, _ := runtime.Caller(0) import runtime
stderr os.Stderr
vprintf, vfprintf fmt.Printf, fmt.Fprintf See Get a varargs-like vprintf or vfprintf in Go for how to implement varargs in Go.

Copyright © Ben Bullock 2009-2017. All rights reserved. For comments, questions, and corrections, please email Ben Bullock (benkasminbullock@gmail.com). / Privacy / Disclaimer