Diff for libplaton/platon/html/Attic/convert.c between version 1.1 and 1.2
| version 1.1, 2001/10/05 13:42:11 |
version 1.2, 2001/10/05 18:14:54 |
|
|
| #include<stdlib.h> |
#include<stdlib.h> |
| #include<string.h> |
#include<string.h> |
| |
|
| #inclue "convert.h" |
#include "convert.h" |
| |
|
| |
|
| /* ",,::~~~~,,~~,,,,~~~~,,~~::,,~~,,~~,,::oo,,~~" */ |
/* ",,::~~~~,,~~,,,,~~~~,,~~::,,~~,,~~,,::oo,,~~" */ |
| Line 22 void html_convert(char *buf) { |
|
| Line 22 void html_convert(char *buf) { |
|
| register int i = 0; |
register int i = 0; |
| |
|
| while (buf[i] != '\0') { |
while (buf[i] != '\0') { |
| if (strchr(t_cp1250, buf[i]) != NULL) |
if (strchr(html_t_cp1250, buf[i]) != NULL) |
| buf[i] = t_ascii[(int) (strchr(t_cp1250, buf[i]) - t_cp1250)]; |
buf[i] = html_t_ascii[ |
| |
(int) (strchr(html_t_cp1250, buf[i]) - html_t_cp1250) |
| |
]; |
| |
|
| i++; |
i++; |
| } |
} |
Platon Group <platon@platon.org> http://platon.org/
|
|