Add toescape function to ex3-2.c