I want to split a string on the nth character. It sounds pretty easy to me, but I haven't found a way to do it yet. Simply put I want firsthalf=strfuncname(const char *foo, int bar)