How to manipulate C strings

I'm in the process of learning C strings at the moment, but there's something that I have not been able to work out yet.

Suppose I have a C string (character array) that looks like this:

char currentTime = "+CIPSNTPTIME:Sun Jun 07 15:30:00 2020"

NOTE: In the example above, I'm manually setting that array, but in my program, this is actually what is returned by a WiFi adapter after an SNTP time query.

My issue is that I want to drop off the "+CIPSNTPTIME:" part of the array so that the array simply contains this: "Sun Jun 07 15:30:00 2020".

How can I accomplish this?

Take a look at this

There is an entire library of reliable routines to manipulate C-strings.
Start here: http://www.cplusplus.com/reference/cstring/

An obvious approach is to use strtok() to split the string at the first ':'.

Have a look at the existing C library functions in stdlib.h and string.h

Why do you want to? If you have a function that's going to do something with the 'new' string, you can just leave the original alone and just pass & currentTime[13].

Doh! Wildbill - that's a great simple solution. Admittedly, though, that was only one sample situation. I still need to understand how to manipulate strings, so thank you all for the pointers (pun intended).

I'm still getting used to the entire C++ strings implementation.

Thanks again.