Skip to content

Instantly share code, notes, and snippets.

@imSrbh
Created March 16, 2020 11:08
Show Gist options
  • Save imSrbh/660e036fec749bcd93712fafb9f65890 to your computer and use it in GitHub Desktop.
Save imSrbh/660e036fec749bcd93712fafb9f65890 to your computer and use it in GitHub Desktop.
//ex‑compile.c
#include <glib.h>
int main(int argc, char∗∗ argv) {
GList∗ list = NULL;
list = g_list_append(list, "Hello world!");
printf("The first item is '%s'\n", g_list_first(list)‑>data);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment