summaryrefslogtreecommitdiffstats
path: root/src/libidn-test.c
blob: 24d9f0a6f49408178c728843aeb3b781c828a17f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* This file is part of mingw-cross-env.       */
/* See doc/index.html for further information. */

#include <stdlib.h>
#include <idna.h>

int main(int argc, char *argv[])
{
    char *hostname_ascii;

    (void)argc;
    (void)argv;

    if (idna_to_ascii_lz("www.google.com", &hostname_ascii, 0) == IDNA_SUCCESS)
    {
        free(hostname_ascii);
    }

    return 0;
}