Http multipart parser implemented in C