wrote:
> Hello all!!
>
> How I can return data from a hash:
To even compile your code, I had to change everything before the
definition of exists() to
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
/* Everything through 'end of non-standard additions' is non-standard
and may be very different on your implementation, both in form and
function */
typedef struct
{
char *key;
void *data;
} ENTRY; /* non-standard type added */
typedef enum
{ FIND, ENTER } ACTION; /* non-standard enum added */
ENTRY *hsearch(ENTRY, ACTION); /* prototype for non-standard function
added */
int hcreate(size_t); /* prototype for non-standard function
added */
/* end of non-standard additions */
But, of course, it still doesn't link. Please take your question to a
place where it is topical. Perhaps a linux group will do you.