#include #include #include #include char * PLATON_FUNC(strconv)(str, charset_from, charset_to) char *str; char *charset_from; char *charset_to; { register int i; register char *c; if (str == NULL || charset_from == NULL || charset_to == NULL) return NULL; for (i = 0; str[i] != '\0'; i++) if ((c = strchr(charset_from, str[i])) != NULL) str[i] = charset_to[(int) (c - charset_from)]; return str; }