aboutsummaryrefslogtreecommitdiff
path: root/example.c
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2026-05-27 15:07:20 +0300
committerSyndamia <kamen@syndamia.com>2026-07-12 09:14:06 +0300
commit9d0f0b2c714819d93eb29f0f00fd5aa600da880f (patch)
tree6b2c28b21253ea65bb9675acb85e2dbb204d7535 /example.c
parent2d5995f3a8040fde50300f3bf2515dbf2dbede36 (diff)
downloadfoollib-9d0f0b2c714819d93eb29f0f00fd5aa600da880f.tar
foollib-9d0f0b2c714819d93eb29f0f00fd5aa600da880f.tar.gz
foollib-9d0f0b2c714819d93eb29f0f00fd5aa600da880f.zip
feat: Implement B_newstr
Diffstat (limited to 'example.c')
-rw-r--r--example.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/example.c b/example.c
index 52d402e..420264a 100644
--- a/example.c
+++ b/example.c
@@ -68,6 +68,10 @@ main() {
astr = B_tostr(&g, a);
printf("a >> 30 = %s\n", astr);
+ BigInt c = B_newstr(&g, "12345678901234567890123");
+ astr = B_tostr(&g, c);
+ printf("c = %s\n", astr);
+
PRINT_NOTOK(g.destroy(&g));
PRINT_NOTOK(t.destroy(&t));
PRINT_NOTOK(T.destroy(&T));