C serial reader