void diccionario_inicializa_contenido(Diccionario *D)
Initializes the contents of the dictionary.
void diccionario_libera(Diccionario *D)
Frees the memory allocated for the dictionary.
void diccionario_muestra(const Diccionario *D)
Displays the contents of the dictionary.
void diccionario_copia(const Diccionario *Do, Diccionario *Dd, int cantidad)
Copies the contents of one dictionary into another.
void diccionario_agrega(Diccionario *D, const char *new_name, double new_value)
Adds a new key-value pair to the dictionary.
void diccionario_aumenta(Diccionario **D, int unidades)
Increases the size of the dictionary by a given number of units.
Diccionario * diccionario_nuevo(void)
Creates a new empty dictionary.
double diccionario_busca_significado(Diccionario *D, const char *nombre)
Searches for the value associated with a key in the dictionary.
Struct representing the dictionary.
Definition diccionario.h:32
int tamano
The total number of nodes in the dictionary.
Definition diccionario.h:34
Nodo ** Nodos
Array of pointers to the nodes (key-value pairs) in the dictionary.
Definition diccionario.h:33
Struct representing a node in the dictionary.
Definition diccionario.h:22
const char * nombre
Key associated with the node.
Definition diccionario.h:23
double valor
Value associated with the node's key.
Definition diccionario.h:24