summaryrefslogtreecommitdiffstats
path: root/src/libidn-test.c
blob: 22f46f602dbb10ef278b7dcfe71196c8ca81f973 (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 MXE.                   */
/* 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;
}