diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2005-06-28 16:37:40 +0000 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2005-06-28 16:37:40 +0000 |
commit | e491cf8ad72d6752af8dac345d3bbc491e21a13a (patch) | |
tree | db41b453a116c64cbac10f51aeec3c68d954cce6 /example/example.c | |
parent | 70fbe7822024d0acc68df3607ff25bf8d7a71751 (diff) | |
download | librcd-e491cf8ad72d6752af8dac345d3bbc491e21a13a.tar.gz librcd-e491cf8ad72d6752af8dac345d3bbc491e21a13a.tar.bz2 librcd-e491cf8ad72d6752af8dac345d3bbc491e21a13a.tar.xz librcd-e491cf8ad72d6752af8dac345d3bbc491e21a13a.zip |
0.1.6
* Function name is changed to conform LibRCC naming conventions
* AutoConf Improvements
* Release Script
* Other minor changes
Diffstat (limited to 'example/example.c')
-rw-r--r-- | example/example.c | 31 |
1 files changed, 0 insertions, 31 deletions
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 <stdio.h> -#include <string.h> -#include <librcd.h> - -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"); - } -} |