X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/blobdiff_plain/8a6f628c163936c6f0852c398694f2d5fc946c37..064dc9896dce3d936a5876b927cece0f44808912:/tipo3/main.c diff --git a/tipo3/main.c b/tipo3/main.c index b6e0579..09fb9d5 100644 --- a/tipo3/main.c +++ b/tipo3/main.c @@ -6,11 +6,22 @@ int main() { EMUFS *fp; char a[] = "1234567890"; + int n; + char b[100]; fp = emufs_crear("articulos", T3, 512, 100); - fp->grabar_registro(fp, a, strlen(a)+1); + n = fp->grabar_registro(fp, a, strlen(a)+1); + + printf("ID = %d\n", n); + + fp->leer_registro(fp, n, b, 100); + + printf("Ok\n"); + printf("Recuperado : %s\n", b); emufs_destruir(fp); + + MD_Listar(); return 0; }