Skip to content

Commit

Permalink
run script example added
Browse files Browse the repository at this point in the history
  • Loading branch information
sulincix committed Aug 15, 2024
1 parent e705c2c commit 8f4e203
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions example/application/run_script.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* Ymp header */
#include <ymp.h>
/*
Build command:
gcc `pkg-config --cflags --libs ymp` run_script.c -o run_script
*/

/* Main function */
int main(int argc, char** argv){
/* Start ymp */
ymp_init(argv, argc);
/* add a script */
add_script("echo hello world");
/* run */
return ymp_run();
}

0 comments on commit 8f4e203

Please sign in to comment.