Python String Mid Function Example In C