Problem W/ My Compressor Reading Files In Ow

Discussion in 'Software' started by HarryPotter, Oct 4, 2020.

  1. HarryPotter

    HarryPotter MajorGeek

    Hi! I have an issue with an Open Watcom C program reading files to compresss: My program registers a file to compress as 0 bytes long then crashes. The erroneous code follows:

    fIn=fopen (argv[1], "r");
    vz.InEnd=fread(InBuffer, 16*1024*1024, 1, fIn);
    fclose (fIn); fIn=0;
    printf ("Size: %d\n", vz.InEnd);

    Any help would be appreciated.
     
  2. Eldon

    Eldon Major Geek Extraordinaire


MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds