X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/blobdiff_plain/8637995cdbd1c7d71825cc2e5e8d874de10135f6..e1b83d7a86a1982cf9936cc354a969d68303d351:/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; +} +