#include <stdio.h>
#include "format.h"

void copy_format();

/*------------------------------------------------------------------------------
  Copy format structure from fmt1 to fmt2.
*/ 
void copy_format(fmt1, fmt2)
format *fmt1, *fmt2;
{
    fmt2->in = fmt1->in;
    fmt2->out = fmt1->out;
    fmt2->skip = fmt1->skip;
    fmt2->end = fmt1->end;
    fmt2->single = fmt1->single;
    fmt2->n = fmt1->n;
    fmt2->nn = fmt1->nn;
    fmt2->innve = fmt1->innve;
    fmt2->outnve = fmt1->outnve;
    fmt2->id = fmt1->id;
    fmt2->newid = fmt1->newid;
    fmt2->weight = fmt1->weight;
    fmt2->inunitp = fmt1->inunitp;
    fmt2->outunitp = fmt1->outunitp;
    fmt2->inframe = fmt1->inframe;
    fmt2->outframe = fmt1->outframe;
    fmt2->inunit = fmt1->inunit;
    fmt2->outunit = fmt1->outunit;
    fmt2->outprecision = fmt1->outprecision;
    fmt2->azn = fmt1->azn;
    fmt2->eln = fmt1->eln;
    fmt2->azp = fmt1->azp;
    fmt2->trunit = fmt1->trunit;
}
