[prev] [index] [next]

Exercise: Find Value in List

Write a function

int valueOf(char *name, NodeT *list)

that returns the value associated with name in list.

If the name does not appear in the list, return -1.