From e491cf8ad72d6752af8dac345d3bbc491e21a13a Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Tue, 28 Jun 2005 16:37:40 +0000 Subject: 0.1.6 * Function name is changed to conform LibRCC naming conventions * AutoConf Improvements * Release Script * Other minor changes --- example/Makefile | 10 ---------- example/example.c | 31 ------------------------------- example/input.txt | 4 ---- 3 files changed, 45 deletions(-) delete mode 100644 example/Makefile delete mode 100644 example/example.c delete mode 100644 example/input.txt (limited to 'example') diff --git a/example/Makefile b/example/Makefile deleted file mode 100644 index 2504505..0000000 --- a/example/Makefile +++ /dev/null @@ -1,10 +0,0 @@ -all: example - -example: example.o - gcc -o example -lrcd example.o - -test: example - cat input.txt | ./example - -clean: - rm -f example example.o \ No newline at end of file diff --git a/example/example.c b/example/example.c deleted file mode 100644 index 9666ae5..0000000 --- a/example/example.c +++ /dev/null @@ -1,31 +0,0 @@ -#include -#include -#include - -main() { - enum russian_charsets res; - char buf[255]; - int l; - - while (fgets(buf,255,stdin)) { - if (strlen(buf)<2) break; - - res = get_russian_charset(buf,0); - switch(res) { - case RUSSIAN_CHARSET_WIN: - printf("CP1251: "); - break; - case RUSSIAN_CHARSET_ALT: - printf("CP866 : "); - break; - case RUSSIAN_CHARSET_KOI: - printf("KOI8-R: "); - break; - case RUSSIAN_CHARSET_UTF8: - printf("UTF8 : "); - break; - } - printf("%s",buf); - if (buf[strlen(buf)-1]!='\n') printf("\n"); - } -} diff --git a/example/input.txt b/example/input.txt deleted file mode 100644 index 8ea6e44..0000000 --- a/example/input.txt +++ /dev/null @@ -1,4 +0,0 @@ -ÐÒÉ×ÅÔ -ïðèâåò -¯à¨¢¥â -привет -- cgit v1.2.3