8 if (argc!=4)
error(
"Usage: arb_treegen <cfg> <tree> <seq>\n"
9 "An evolution simulator - (C) 1995 by Ralf Westram\n"
11 "Environment specification is read from <cfg> (will be generated if missing)\n"
13 "<tree> file were the simulated phylogeny is saved to (as tree)\n"
14 "<seq> file were the simulated species are saved to (as sequences)\n"
17 srand((
unsigned)time(NULL));
23 topo = fopen(argv[2],
"w");
if (!
topo) { perror(argv[2]); exit(1); }
24 seq = fopen(argv[3],
"w");
if (!
seq) { perror(argv[3]); exit(1); }
void readSimCfg(cstr fname)
static void error(const char *msg)
void splitRNS(int no_of_father, RNS origin, double age, int steps, int depth)
int ARB_main(int argc, char *argv[])