Browse Source

it compiles now but it doesn't do anything yet

master
Grant Montgomery 2 years ago
parent
commit
cd3451c8ef
  1. 7
      columnar.c
  2. 0
      test1.c

7
columnar.c

@ -116,7 +116,7 @@ int unpad_buffer(char *buffer, unsigned int bufsize) {
* buffer -- buffer containing padded data
* bufsize -- size of 'buffer'
*/
char *tmpbuf[bufsize];
char tmpbuf[bufsize];
int unpadded = 0;
@ -195,7 +195,10 @@ int main(int argc, char *argv[]) {
fclose(OUTPUT); /* file is reopened and reclosed for in dump_buffer() */
int blocks = ciel(filesize/dim/dim);
int blocks = filesize/dim/dim;
if(filesize % (dim*dim) != 0) {
blocks++;
}
/* loop through the input file, reading into a buffer and
* processing the buffer when 1) the buffer is full or
* 2) the file has ended (or in the case of decoding, when

0
columnar1.c → test1.c

Loading…
Cancel
Save