X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/blobdiff_plain/8637995cdbd1c7d71825cc2e5e8d874de10135f6..f8a441d3986f96851c8201fe82c5ce328b582d05:/emufs/emufs.c?ds=sidebyside diff --git a/emufs/emufs.c b/emufs/emufs.c index 685f091..cc33ee3 100644 --- a/emufs/emufs.c +++ b/emufs/emufs.c @@ -528,3 +528,16 @@ EMUFS_BLOCK_ID emufs_get_new_block_number(EMUFS *emu) fclose(fp); return num+1; } + +INDICE *emufs_buscar_indice_por_nombre(EMUFS *emu, const char *nombre) +{ + INDICE *tmp; + + tmp = emu->indices; + while (tmp) { + if (strcmp(tmp->nombre, nombre) == 0) break; + tmp = tmp->sig; + } + return tmp; +} +