X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/blobdiff_plain/568a401891b45d9764b41e5c2091a55178691611..3f3702cf1367ecb4ab2d53182117078fbc42720a:/emufs/b_plus_test.c diff --git a/emufs/b_plus_test.c b/emufs/b_plus_test.c index 3311353..7a0ea8c 100644 --- a/emufs/b_plus_test.c +++ b/emufs/b_plus_test.c @@ -7,6 +7,7 @@ int main(int argc, char* argv[]) { /* Locals */ INDEX_DAT querydata; +CLAVE postkey, prekey; int i = 0; int exitcode = 0; int tam_nodo = SIZE_B_PLUS_HEADER + sizeof(CLAVE)*5 + sizeof(CLAVE)*6; @@ -46,6 +47,11 @@ printf("Exit Code del Buscar Clave: %i\n",exitcode); exitcode = emufs_b_plus_eliminar(emu->indices,querydata.clave,1); printf("Exit Code del Borrar Clave: %i\n",exitcode); +querydata.clave.i_clave = 8; +exitcode = b_plus_buscar_prepost(emu->indices,querydata.clave,0,&postkey,1); +printf("El Sucesor de la clave %i es %i\n",querydata.clave.i_clave,postkey.i_clave); +/*exitcode = b_plus_buscar_prepost(emu->indices,querydata.clave,0,&prekey,0); +printf("El Predecesor de la clave %i es %i\n",querydata.clave.i_clave,prekey.i_clave);*/ /* querydata.num_bloque = 2; querydata.clave.i_clave = 7;