coarse is working perfectly now! hooray! One down! My array didn't have enough space for 21 arguments, even though it was 21 in size. I think perhaps strtok adds a null terminator which I didn't anticipate