/* patcher.c - patches files using patchfile */
/* Version 1.1 25-JAN-96 */
/* Copyright © 1996 Sean Riddle */
/* Freely distributable on any medium given all copyrights are retained */
/* by the author and no charge greater than $7.00 is made for obtaining */
/* this software */
/* Please send all bug reports and update ideas to: */
/* sriddle@ionet.net */
/* latest version at: */
/* Please don't hurl on my URL! */
/* usage: patcher */
/* the patchfile format is as follows: */
/* Offset $0: From $7E To $23 */
/* comments have ; in first position of line */
/* compiled on Amiga SAS/C 6.56 */
#include
#include
#include
void main(int argc,char *argv[]) {
FILE *fpin,*fppat;
char line[256];
int i;
int offset,from,to,was;
int err=0;
int ap=1;
if(argc==3) {
if(fpin=fopen(argv[1],"rb+")) {
if(fppat=fopen(argv[2],"rb")) {
while(fgets(line,255,fppat)) {
if(line[0]!=';') {
for(i=0;(i '\n",argv[0]);
}