Kind of working

Need to review handling char arrays in C
Not really working