A general purpose c programming framework