C needs null-terminated strings, therefore we should give them correctly
Better error handling