aboutsummaryrefslogtreecommitdiff
path: root/tests/core/test_exceptions_alias.c
blob: 0c8cc37a2dd7e50ee34648e8c3f04313ddc6c919 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#define _POSIX_SOURCE
#include <locale.h>
#include <ctype.h>
#include <stdio.h>

int main(void) {
    try {
        printf("*%i*\n", isdigit('0'));
        printf("*%i*\n", isdigit_l('0', LC_GLOBAL_LOCALE));
    }
    catch (...) {
        printf("EXCEPTION!\n");
    }
}