Newer
Older
ubixos / src / sys / boot / writeimg.c
@reddawg reddawg on 2 May 2002 439 bytes New Kernel
/**************************************************************************************
$Id$


**************************************************************************************/

#include <stdio.h>

int main(int argc, char **argv) {
  FILE *in,*out;
  int tmp;

  in = fopen("bootsec","rb");
  out = fopen(argv[1],"r+b");
  while(!feof(in)) {
    tmp = fgetc(in);
    fputc(tmp,out);
    }
  close(in);
  close(out);
  return(0);
  }