
03/05/2005, 10:17
|
| | Fecha de Ingreso: diciembre-2003
Mensajes: 190
Antigüedad: 21 años, 3 meses Puntos: 0 | |
ok, perdona solo lo puse para que tuvieras una vision mas global.
Por cierto, tengo un problema con esta funcion donde el segundo FOR me da un error del tipo "error: incompatible types in assignment" y en el primer FOR
"statement with no effect"
Podrias echarme una mano?
int get_all_strings(hash_table_t *hashtable)
{
int i, count = 0;
list_t *list;
/* error check to make sure hashtable exists */
if (hashtable==NULL) return -1;
/* go through every index and count all list elements in each index */
for(i=0; i<hashtable->size; i)
{
for(list=hashtable[i]; list != NULL; list = list->next)
{
printf ("el valor: %sºn", list->str);
}
}
return count;
} |