Jackson structured programming: Difference between revisions

Content deleted Content added
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) {
int/* countprocess =the 1;first byte in the run */
first_byte = c;
 
int first_bytecount = c1;
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 */
}