X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/blobdiff_plain/38e8783579e4b158b1fced1caec93e16ae05afc4..83110706b7a81ad5a9964c92823b7827d9088256:/emufs/tipo3_main.c diff --git a/emufs/tipo3_main.c b/emufs/tipo3_main.c index 559a3c9..2fc5dcf 100644 --- a/emufs/tipo3_main.c +++ b/emufs/tipo3_main.c @@ -40,7 +40,7 @@ int main(int argc, char *argv[]) { EMUFS *fp; - int n1, n2, n3, n4, n5, n6, n7, n8; + EMUFS_REG_ID n1, n2, n3, n4, n5, n6, n7, n8; char a[100]; char b[100]; char c[100]; @@ -80,19 +80,19 @@ int main(int argc, char *argv[]) n6 = fp->grabar_registro(fp, g, 100); n7 = fp->grabar_registro(fp, h, 100); n8 = fp->grabar_registro(fp, i, 100);*/ - 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); + printf("ID0 = %lu\n", n1); + printf("ID1 = %lu\n", n2); + printf("ID2 = %lu\n", n3); + printf("ID3 = %lu\n", n4); + printf("ID4 = %lu\n", n5); + printf("ID5 = %lu\n", n6); + printf("ID6 = %lu\n", n7); -ver_archivo_FS(fp); + ver_archivo_FS(fp); /*fp->borrar_registro(fp, n4, 100); fp->borrar_registro(fp, n2, 100); fp->borrar_registro(fp, n6, 100);*/ - fp->borrar_registro(fp, n1, 100); + fp->borrar_registro(fp, n1); printf("borre el registro de id = %d\n",n1); fp->leer_registro(fp, n2, b, 100);