#import <stdio.h>
#import <zlib.h>
#import <limits.h>
#import "compress-file.h"

int main(int argc, char* argv[])
{
   char outFileName[PATH_MAX] = { 0 };
   FILE *fp = fopen(argv[1], "r");
   if (fp)
   {
      sprintf(outFileName, "%s.gz", argv[1]);
      if (compressFile(fp, outFileName) != 0)
      {
         fclose(fp);
         return -1;
      }
      fclose(fp);
   }
  return 0;
}
