|
TPCCLIB
|
Processing list of TAC structures. More...
#include "tpcclibConfig.h"#include "tpcift.h"#include "tpcisotope.h"#include <stdio.h>#include <stdlib.h>#include <math.h>#include <time.h>#include <string.h>#include "tpctac.h"Go to the source code of this file.
Functions | |
| void | mtacInit (MTAC *mtac) |
| void | mtacFree (MTAC *mtac) |
| int | mtacAllocate (MTAC *mtac, int nr) |
| int | mtacAllocateMore (MTAC *mtac, int nr) |
| int | mtacAddTAC (MTAC *mtac, TAC *tac) |
Copy given TAC structure into MTAC list.
| mtac | Pointer to initiated MTAC structure; any old contents are preserved. |
| tac | Pointer to TAC structure to add. |
| int mtacAllocate | ( | MTAC * | mtac, |
| int | nr ) |
Allocate memory for TACs in MTAC data structure.
| mtac | Pointer to initiated MTAC structure; any old contents are deleted. Number of TACs is kept at zero, but TACs in the list are initiated. |
| nr | Nr of TACs to allocate |
Definition at line 56 of file mtac.c.
Referenced by mtacAllocateMore().
| int mtacAllocateMore | ( | MTAC * | mtac, |
| int | nr ) |
Allocate memory for more TACs in MTAC structure. Previous contents are not changed.
| mtac | Pointer to initiated and previously allocated MTAC structure; any old contents are preserved, including nr of TACs. |
| nr | Nr of additional TAC structures to allocate; if structure contains unused space for requested TACs already, then nothing is done. |
Definition at line 83 of file mtac.c.
Referenced by mtacAddTAC().
| void mtacFree | ( | MTAC * | mtac | ) |
Free memory allocated for MTAC data. All contents are destroyed.
| mtac | Pointer to MTAC. |
Definition at line 38 of file mtac.c.
Referenced by mtacAllocate().