summaryrefslogtreecommitdiffstats
path: root/unicode/graphemetest.c
blob: 00d65f22220f4b7809028c2e25ed30c1681b30bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
** Copyright 2011 Double Precision, Inc.
** See COPYING for distribution information.
**
*/

#include	"unicode_config.h"
#include	"courier-unicode.h"
#include	<string.h>
#include	<stdlib.h>
#include	<stdio.h>
#include	<errno.h>


int main(int argc, char **argv)
{
	if (argc >= 3)
	{
		printf("%d\n",
		       unicode_grapheme_break(strtol(argv[1], NULL, 0),
					      strtol(argv[2], NULL, 0)));
	}
	return (0);
}