Skip to content

Commit 23868d0

Browse files
committed
Update basic function to make it easier to observe it ran correctly
1 parent a5ae1d4 commit 23868d0

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

c_functions/basic/basic.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
#include "dandelion/runtime.h"
22

3-
// most basic function that does nothing except for returning
3+
char output = 0;
4+
5+
// most basic function that does nothing except for returning a simple fixed
6+
// item
47
void _start(void) {
58
dandelion_init();
9+
IoBuffer new_out = {.data = &output, .data_len = 1, .ident_len = 0, .key = 0};
10+
dandelion_add_output(0, new_out);
611
dandelion_exit(0);
712
}

0 commit comments

Comments
 (0)