/* return a pointer to a symbol table entry that
has the name field being 'sym'
return NULL if there is no symbol table entry with the name
being 'sym'.
*/
SYMTBL symtbl_lookup(char *sym)
{
}
/* return a pointer to a symbol table entry that
has the name field being 'sym'
return NULL if there is no symbol table entry with the name
being 'sym'.
*/
SYMTBL symtbl_lookup(char *sym)
{
}
No need to repeat yourself.
How to return the name field of the structure pointed to by 'entry'
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.