/*
testlocale.c
by Ryan Schmidt
BSD license

Compile this with:
cc testlocale.c -framework CoreFoundation -o testlocale
Run it with:
./testlocale
*/

#include <CoreFoundation/CoreFoundation.h>

int main() {
  CFLocaleRef locale = CFLocaleCopyCurrent();
  CFShow(locale);
  CFTypeRef country = CFLocaleGetValue(locale, kCFLocaleCountryCode);
  CFShow(country);
}
