-
-
Save parzibyte/3714c63c32dfeeb2ec12ee0b1869158c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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