revert between 56095 -> 55830 in arch
[AROS.git] / workbench / libs / codesets / developer / examples / autoopen.c
blob279426a0063521ce3a2fbb7cefe31722b760dd5c
1 #include <libraries/codesets.h>
2 #include <proto/codesets.h>
4 #include <stdio.h>
6 int main()
8 struct codeset *cs;
10 if (!CodesetsBase) {
11 printf("Autoopen failed!\n");
12 return 1;
14 cs = CodesetsFindA(NULL, NULL);
16 if (cs)
17 printf("Default codeset for your system is %s\n", cs->name);
18 else
19 printf("Unable to query default codeset\n");
20 return 0;