Skip to content

Instantly share code, notes, and snippets.

@parzibyte

parzibyte/solicitar.c Secret

Created Jan 13, 2021
Embed
What would you like to do?
struct nodoCadena *nuevoNodo(char cadena[MAXIMA_LONGITUD_CADENA])
{
// Solicitar memoria
size_t tamanioNodo = sizeof(struct nodoCadena);
struct nodoCadena *nodo = (struct nodoCadena *)malloc(tamanioNodo);
// Asignar el dato e iniciar hojas
strcpy(nodo->cadena, cadena);
nodo->izquierda = nodo->derecha = NULL;
return nodo;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment