a mlp in c