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