   parsing cstrings to get numbers
  Ok so I am trying to parse things out of a cstring and I am forgetting how to do it so here is what I am trying to do. Take this string "1231231234" and parse it out so that I have 10 independent variables all of type char* and of length 0 so that I have something like this"1" "2" "3" "1" "2" "3" "1" "2" "3" "4", and then I would like to take each one of those char* convert them to numerical values of the corresponding char*.  If anyone could help that would be great, I simply have forgotten all about parsing such files because I haven't done parsing in quite sometime. Thanks for any help.   
char *p = "1231231234";int a[10];for (int i = 0; i < 10; ++i)    a = p - '0';;  What language are you programming in? And by 'cstring', do you mean a C string (as in C, the language)?   ;  Yeah I am talking about the <cstring> library that is used in C/C++ programming language. Thanks for the answer DevFred.   