llist_t and llist_pop

Yann E. MORIN yann.morin.1998 at anciens.enib.fr
Fri May 19 13:33:49 UTC 2006


Hello!

Would anybody care to explain why llist_t is defined that way:

typedef struct llist_s {
    char *data;
    struct llist_s *next;
} llist_t;

and why llist_pop returns void* :

extern void *llist_pop(llist_t **elm);

when it returns the data field (a char*) of a llist_t structure?

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software  Designer | \ / CAMPAIGN     |   ^                |
| --==< °_° >==-- °---.----------------:  X  AGAINST      |  /e\  There is no  |
| web: ymorin.free.fr | SETI at home 3808 | / \ HTML MAIL    |  """  conspiracy.  |
°---------------------°----------------°------------------°--------------------°




More information about the busybox mailing list