probelm with PASTE code in editor
We have wiki for programming study forum.
But when I post C/C++'s source code (as below) in Forum editor, it's truncted at the line as '*'-marked, but here everything works, why?
char *getxs(char *dest)
{
int c;
int even = 1; /* Have read even number of digits */
int otherd = 0; /* Other hex digit of pair */
char *sp = dest;
while c = getchar( != EOF && c != '\n') {
if c {
int val;
if ('0' <= c && c <= '9') --- * '0' followed contents disappear at my Wiki
val = c - '0';
else if ('A' <= c && c <= 'F')
val = c - 'A' + 10;
else
val = c - 'a' + 10;
if (even) {
otherd = val;
even = 0;
} else {
*sp++ = otherd * 16 + val;
even = 1;
}
} // ALL these section is disappear in my wiki