diff options
Diffstat (limited to 'lib/typst/example.c')
| -rw-r--r-- | lib/typst/example.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/typst/example.c b/lib/typst/example.c new file mode 100644 index 0000000..39e7a06 --- /dev/null +++ b/lib/typst/example.c @@ -0,0 +1,9 @@ +#include "typst.h" +#include <stdio.h> + +int main() { + const char* res = typst_generateSVG("Hello world"); + printf("%s\n", res); + typst_freeString(res); + return 0; +} |
