home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Interactive Guide / c-cplusplus-interactive-guide.iso / c_ref / csource2 / sclib_1 / 1_3 / v7n3052a.txt < prev    next >
Encoding:
Text File  |  1995-11-01  |  334 b   |  20 lines

  1. typedef struct SYMBOL {
  2.     int     symtype;
  3.     char    symname[1];        /* first character of symbol name */
  4.     }       SYMBOL;
  5.  
  6. /*
  7.  *  newsym - return a pointer to a symbol of a given length.
  8.  */
  9.  
  10. SYMBOL *newsym(unsigned len) {
  11. extern void   *malloc();
  12.  
  13.     return ( (SYMBOL *) malloc(sizeof(SYMBOL)+len) );
  14. }
  15.  
  16.  
  17.  
  18.  
  19.  
  20.