Closed igor-petruk closed 3 years ago
Above:
#!/usr/bin/env scriptisto
// scriptisto-begin
// script_src: main.c
// build_cmd: clang -O2 main.c `pkg-config --libs --cflags glib-2.0` -o ./script
// scriptisto-end
#include <glib.h>
#include <stdio.h>
int main(int argc, char* argv[]) {
gchar* user = g_getenv("USER");
printf("Hello, C! Current user: %s\n", user);
return 0;
}
Below:
#!/usr/bin/env scriptisto
#include <glib.h>
#include <stdio.h>
int main(int argc, char* argv[]) {
gchar* user = g_getenv("USER");
printf("Hello, C! Current user: %s\n", user);
return 0;
}
// scriptisto-begin
// script_src: main.c
// build_cmd: clang -O2 main.c `pkg-config --libs --cflags glib-2.0` -o ./script
// scriptisto-end
I suppose I won't change anything
Pls click to vote