Skip to content

Instantly share code, notes, and snippets.

@davidreynolds
Created June 30, 2012 20:26
Show Gist options
  • Select an option

  • Save davidreynolds/3025363 to your computer and use it in GitHub Desktop.

Select an option

Save davidreynolds/3025363 to your computer and use it in GitHub Desktop.
void encode(void)
{
int i, j, f1, x, y, r, s, bufferend, c;
for (i = 0; i < N - F; i++) buffer[i] = ' ';
for (i = N - F; i < N * 2; i++) {
if ((c = fgetc(infile)) == EOF) break;
buffer[i] = c; textcount++;
}
bufferend = i; r = N - F; s = 0;
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment