then you either use an existing C library (the most likely approach) or if you are determined to re-implement it you have to be careful parsing their bytes.