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:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
Text File
|
1995-11-01
|
334 b
|
20 lines
typedef struct SYMBOL {
int symtype;
char symname[1]; /* first character of symbol name */
} SYMBOL;
/*
* newsym - return a pointer to a symbol of a given length.
*/
SYMBOL *newsym(unsigned len) {
extern void *malloc();
return ( (SYMBOL *) malloc(sizeof(SYMBOL)+len) );
}