aboutsummaryrefslogtreecommitdiff
path: root/typst/example.c
diff options
context:
space:
mode:
Diffstat (limited to 'typst/example.c')
-rw-r--r--typst/example.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/typst/example.c b/typst/example.c
new file mode 100644
index 0000000..a1df659
--- /dev/null
+++ b/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_freeSVG(res);
+ return 0;
+}