library: math/big.Int (mini-impl for _cmptest/bigintdemo)

This commit is contained in:
xushiwei
2024-08-01 00:32:21 +08:00
parent 79d8b00b27
commit 2e4b1d8c2b
8 changed files with 537 additions and 3 deletions

View File

@@ -38,5 +38,7 @@ func main() {
// Swap a and b so that b is the next number in the sequence.
a, b = b, a
}
c.Printf(c.Str("%s\n"), a.CStr()) // 100-digit Fibonacci number
cstr := a.CStr()
c.Printf(c.Str("%s\n"), cstr) // 100-digit Fibonacci number
openssl.FreeCStr(cstr)
}