prog.c:8:1: error: expected ‘;’, identifier or ‘(’ before ‘void’
void lst_print(node * lst){
^~~~
prog.c:8:16: error: unknown type name ‘node’
void lst_print(node * lst){
^~~~
prog.c: In function ‘main’:
prog.c:18:2: error: unknown type name ‘node’
node * list = malloc(sizeof(node));
^~~~
prog.c:18:2: note: use ‘struct’ keyword to refer to the type
prog.c:18:16: warning: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration]
node * list = malloc(sizeof(node));
^~~~~~
prog.c:18:16: warning: incompatible implicit declaration of built-in function ‘malloc’
prog.c:18:16: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
prog.c:18:30: error: ‘node’ undeclared (first use in this function)
node * list = malloc(sizeof(node));
^~~~
prog.c:18:30: note: each undeclared identifier is reported only once for each function it appears in
prog.c:29:2: warning: implicit declaration of function ‘lst_print’ [-Wimplicit-function-declaration]
lst_print(list);
^~~~~~~~~