X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/blobdiff_plain/3d7c873614ca81c1590a4cbb7e786ffda64755d6..dea2e663e8a5afc489e331721832c3dbfb4d2f09:/emufs/indices.c?ds=sidebyside diff --git a/emufs/indices.c b/emufs/indices.c index 34d347e..c767d64 100644 --- a/emufs/indices.c +++ b/emufs/indices.c @@ -244,3 +244,14 @@ void emufs_indice_obtener_valor_desde_clave(INDICE *idx, CLAVE k, void *dst) free(leido); } } + + +void emufs_indice_borrar(INDICE *primero, CLAVE k, INDICE_DATO dato) +{ + INDICE *iter = primero; + + while (iter) { + iter->borrar_entrada(iter, k, dato); + iter = iter->sig; + } +}