Created
October 24, 2014 18:08
-
-
Save colltoaction/eb25da52965f53a692c7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
bool _abb_in_order(abb_nodo_t *nodo, bool visitar(const char *, void *, void *), void *extra){ | |
if (!nodo) | |
return true; | |
return _abb_in_order(nodo->der, visitar, extra) | |
&& visitar(nodo->clave, nodo->dato, extra) | |
&& _abb_in_order(nodo->izq, visitar, extra); | |
} | |
void abb_in_order(abb_t *arbol, bool visitar(const char *, void *, void *), void *extra){ | |
_abb_in_order(arbol->raiz, visitar, extra); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment