Taking only part of a char array?

Let's say we have a char array test[10], and it contains "123456789"

What should I do if I want to get only the first 5 characters and put it into another character array?
Topic archived. No new replies allowed.