Super simple and informative exmple of using CGO
package main | |
// #include <ctype.h> | |
import "C" | |
import "log" | |
func main() { | |
for i := 32; i<126; i=i+1 { | |
log.Printf( "'%s' (%3d) isalpha: \t%d", string(byte(i)), i, C.isalpha(C.int(i)) ) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.