home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume24 / chemtab / part02 / element.h < prev    next >
C/C++ Source or Header  |  1991-03-12  |  797b  |  29 lines

  1. /*
  2.  * chemtab - a periodic table data base (C) 1990 Jim King (pulsar@lsrhs)
  3.  *
  4.  * element.h    Contains the structure for all the elements, *e.
  5.  */
  6.  
  7. #include "tune.h"
  8.  
  9. #define    NEW(X)    (struct X *)malloc(sizeof(struct X))
  10.  
  11. struct elem {
  12.     char    name[18],        /* Atomic Name */
  13.         sym[4];            /* Atomic Symbol */
  14.     float    amass,            /* Atomic Mass */
  15.         eneg,            /* Electronegativity */
  16.         spht,            /* Specific Heat */
  17.         arad,            /* Atomic Radius */
  18.         dens;            /* Density of the Solid */
  19.     int    anum,            /* Atomic Number */
  20.         melt,            /* Melting point, deg C */
  21.         boil,            /* Boiling point, deg C */
  22.         fio,            /* First Ionization Energy, cal */
  23.         year,            /* Year Discovered */
  24.         val,            /* Valence Electrons */
  25.         fam,            /* Family (1-18, new system) */
  26.         row;            /* Horizontal rows */
  27.     struct    elem    *next;        /* linked list */
  28. } *e;
  29.