tfind1 tfind void * tfind(const void *vkey, void * const *vrootp, int (*compar)(const void *, const void *)) #include typedef struct node_t { char *key; struct node_t *llink, *rlink; } node; /* find a node, or return 0 */ void * tfind(const void *vkey, void * const *vrootp, int (*compar)(const void *, const void *)) { char *key = (char *)vkey; node **rootp = (node **)vrootp; if (rootp == (struct node_t **)0).. 2016. 7. 9. 이전 1 다음