This repository provides a simple example that demonstrates how to build an application for the Internet Computer in C. The source files provided here are compiled down to WebAssembly via Clang and linked against WebAssembly build targets for libc
and libtommath
via LLD.
See the workflow for installation details.
dfx start --background
dfx canister create counter
dfx build
dfx canister install counter
Get the value of the counter.
dfx canister call counter get
Set the value of the counter.
dfx canister call counter set '(123456)'
Increment the value of the counter.
dfx canister call counter inc
Decrement the value of the counter.
dfx canister call counter dec
Feel free to join in. All are welcome. Open an issue!