/* Collection of code snippets by Arne Vajhøj */
/* (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include "cdtst.h"

int main()
{
   int i;
   FILE *fp;
   char data[CHUNK];
   memset(data,'A',sizeof(data));
   fp = fopen("CDTST.DAT","wb");
   for(i=0;i<NRECS;i++) {
      fwrite(data,sizeof(data),1,fp);
   }
   fclose(fp);
   exit(EXIT_SUCCESS);
}

