Skip to content

Instantly share code, notes, and snippets.

View peat-psuwit's full-sized avatar

Ratchanan Srirattanamet peat-psuwit

View GitHub Profile
@peat-psuwit
peat-psuwit / myWay.c
Last active October 13, 2016 15:45 — forked from anonymous/myWay.c
Works way to update binary (harder then you think)
#include <stdio.h>
#include <stddef.h>
typedef struct {
char name[128];
int max_hp;
int current_hp;
} Charactor;
#define SAVE_FILENAME "gamedata.bin"