X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/blobdiff_plain/294c557b0881b55093c4b89c475d38b77e3db9cb..7cd2e930f9665432a3bfa725b90bf3c0a3cb5617:/tipo3/main.c diff --git a/tipo3/main.c b/tipo3/main.c index 2ef85af..1d7cac1 100644 --- a/tipo3/main.c +++ b/tipo3/main.c @@ -25,7 +25,7 @@ int main() fp = emufs_crear("articulos", T3, 220, 100); - + n1 = fp->grabar_registro(fp, a, 100); n2 = fp->grabar_registro(fp, c, 100); n3 = fp->grabar_registro(fp, d, 100); @@ -34,15 +34,16 @@ int main() n6 = fp->grabar_registro(fp, g, 100); n7 = fp->grabar_registro(fp, h, 100); - printf("ID1 = %d\n", n1); - printf("ID2 = %d\n", n2); - printf("ID3 = %d\n", n3); - printf("ID4 = %d\n", n4); - printf("ID5 = %d\n", n5); - printf("ID6 = %d\n", n6); - printf("ID7 = %d\n", n7); + printf("ID0 = %d\n", n1); + printf("ID1 = %d\n", n2); + printf("ID2 = %d\n", n3); + printf("ID3 = %d\n", n4); + printf("ID4 = %d\n", n5); + printf("ID5 = %d\n", n6); + printf("ID6 = %d\n", n7); + + fp->leer_registro(fp, n6, b, 100); - fp->leer_registro(fp, n7, b, 100); printf("Ok\n"); printf("Recuperado : %s\n", b);