1 write a function that finds the length of a list of list node t nodes function pro 5346969

1. Write a function that finds the length of a list of list_node_t nodes.

Function prototype:

int length(list_node_t *headp);

2. Write a recursive version of function search (see iterative function search on page 721)

prototype:

list_node_t *search(list_node_t *headp, int target);

Searches a list for a specified target value. Returns a pointer to the first node containing target if found. Otherwise returns NULL.

type list_node_t is typedefed on page 716:

typedef struct list_node_s {

int digit;

struct list_node_s *restp;

} list_node_t;

"Get 15% discount on your first 3 orders with us"
Use the following coupon
FIRST15

Order Now