juegos

Juegos de terminal de Pancho: Catan (TUI, GUI, web, servidor, PicoCalc), ajedrez, calculadora y minijuegos
git clone https://git.lu3dhn.xyz/juegos.git
Log | Files | Refs

sdlog.h (470B)


      1 /* sdlog.h - log de diagnostico (APP_SD_LOG) y partida guardada (APP_SD_SAV)
      2  * en la tarjeta SD (ver sdlog.c). */
      3 #ifndef SDLOG_H
      4 #define SDLOG_H
      5 #include <stdbool.h>
      6 bool sdlog_open(void);
      7 bool sdlog_ready(void);
      8 void sdlog(const char *line);
      9 
     10 bool sdsave_available(void);                 /* hay tarjeta con el archivo de partida */
     11 bool sdsave_save(const char *data, int n);
     12 int  sdsave_load(char *buf, int max);        /* bytes leidos, 0 si no hay partida */
     13 #endif