X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/blobdiff_plain/abb8a32d66ddd4cb1a885ee23fe9cd4d7d9a4c9f..3680858ed318cb5b0a2d742693766a0d5c5fc528:/tipo3/main.c diff --git a/tipo3/main.c b/tipo3/main.c index 5359aca..395ed53 100644 --- a/tipo3/main.c +++ b/tipo3/main.c @@ -1,9 +1,24 @@ #include - +#include +#include "emufs.h" int main() { - printf("TODAVIA NO HAGO NADA, PERO CUANDO HAGA ALGO... AGARRATE!!!\n"); + 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("Recuperado : %s\n", b); + emufs_destruir(fp); return 0; }