- struct block_reg_t r;
-
- printf("sizeof(struct block_reg_t) = %d\n", sizeof(struct block_reg_t));
- printf("sizeof(r) = %d\n", sizeof(r));
+ EMUFS *fp;
+ char a[] = "1234567890";
+ int n;
+ char b[100];
+
+ fp = emufs_crear("articulos", T3, 512, 100);
+
+ 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);