src/c2html.c

changeset 6
d10f7570add4
parent 5
412f1896874b
child 7
02cf8ac736e6
child 11
c59fe73459fd
equal deleted inserted replaced
5:412f1896874b 6:d10f7570add4
178 } 178 }
179 if (closespan) { 179 if (closespan) {
180 memcpy(&(dest[dp]), "</span>", 7); 180 memcpy(&(dest[dp]), "</span>", 7);
181 dp += 7; 181 dp += 7;
182 } 182 }
183 } 183 memset(word, 0, WORDBUF_SIZE);
184 memset(word, 0, WORDBUF_SIZE); 184 wp = 0;
185 wp = 0; 185 }
186 dp = writeescapedchar(dest, dp, c); 186 dp = writeescapedchar(dest, dp, c);
187 } else { 187 } else {
188 /* read word */ 188 /* read word */
189 if (wp < WORDBUF_SIZE) { 189 if (wp < WORDBUF_SIZE) {
190 word[wp++] = c; 190 word[wp++] = c;

mercurial