5 /* Build using the following command:
6 * gcc -o foo foo.c `libgsasl-config --cflags --libs`
10 main (int argc
, char *argv
[])
15 setlocale (LC_ALL
, "");
17 if (gsasl_check_version(GSASL_VERSION
) == NULL
)
19 fprintf(stderr
, "Libgsasl is %s expected %s\n",
20 gsasl_check_version(NULL
), GSASL_VERSION
);
24 res
= gsasl_init (&ctx
);
27 fprintf(stderr
, "Cannot initialize libgsasl: %s\n",
32 /* Do things here ... */