this has been puzzling me for some time now, i've heard that it can be done with strtok() but i cant get my head around it....

basically i want to split a 4 character string i.e. 'ABCD' in half, and store the results into two different variables. so, if the string x is equal to 'ABCD', then i want to make y = 'AB' and z = 'CD'. what is the easiest way to do this?