/* 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)
{
}
This is a discussion on How to work on this function within the C Programming forums, part of the General Programming Boards category; /* return a pointer to a symbol table entry that has the name field being 'sym' return NULL if there ...
/* 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.
I support http://www.ukip.org/ as the first necessary step to a free Europe.