X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/blobdiff_plain/3d7c873614ca81c1590a4cbb7e786ffda64755d6..a666806d9361a2876a07941b8d2bb5c973e1557e:/emufs/indices.c 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; + } +}