/* * ---------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * Evgeniy Alekseev wrote this file. As long as you retain this notice you * can do whatever you want with this stuff. If we meet some day, and you think * this stuff is worth it, you can buy me a beer in return * ---------------------------------------------------------------------------- */ /** * @file print_struct.c * Source code of mathmech library * @author Evgeniy Alekseev (arcanis) * @copyright Beerware * @bug No known bugs */ #include #include #include /** * @fn print_structure */ int print_structure (const char *output, const int num_needed_mol, const int *needed_mol, const system_info _system_info, const atom_info *_atom_info) { int cur_atom, cur_mol, i, j; FILE *f_out; /* cur_atom current atom * cur_mol current molecule * f_out output file */ cur_atom = 1; f_out = fopen (output, "w"); for (i=0; i