Content deleted Content added
m →A worked example: typo fix |
→A worked example: commented the C code the way a good JSP programmer would |
||
Line 134:
{
int c;
int first_byte;
int count;
c = getchar(); /* get first byte */
while (c != EOF) {
first_byte = c;
c = getchar(); /* get next byte */▼
▲ c = getchar();
/* process the succeeding bytes in the run */
while (c != EOF && c == first_byte && count < 255) {
/* process one byte of the same value */
count++;
c = getchar(); /* get next byte */
}
|