/* The permission is granted to use the software as is and redistribute it in its original and complete form. If you find this program useful and publish results obtained by it, please cite the program as: Michael Whitbeck, Desert Research Institute, 1991, "REACT - Program to solve kinetic equations for chemical systems". Version 1.00, this code is available from the authors or from Dr. Whitbeck. */ #include "rxn.h" void setfiles(root) char *root; { if (strlen(root) < 1) bail("No parameter file!"); parameters = (char *)malloc(strlen(root)+5); strcpy (parameters, root); strcat (parameters,".p"); mechanism = (char *)malloc(strlen(root)+5); strcpy (mechanism, root); strcat (mechanism,".m"); results = (char *)malloc(strlen(root)+5); strcpy (results, root); strcat (results,".r"); Species = (char *)malloc(strlen(root)+5); strcpy (Species, root); strcat (Species,".s"); select = (char *)malloc(strlen(root)+5); strcpy (select, root); strcat (select,".e"); fitdata = (char *)malloc(strlen(root)+5); strcpy (fitdata, root); strcat (fitdata,".f"); }