/* charset.c Custom charsets sanitization */ #include #include #include #include #ifdef NCURSES #include #endif #ifndef NCURSES #define printw printf #endif int charset_sort(charset) char *charset; { register int i,j,flag; unsigned int length; char *buf; mdmesg(27, NULL); length=strlen(charset); buf=(char *)malloc(length+1); if (!buf) { mdmesg(7, NULL); exit(0); } bzero(buf, length); for (i=0;i