I want to parse an email http date header, is there an easy way to do it without writing my own string parsing functions?
Example:
Date: Fri, 19 Mar 2010
libcurl has a function for that, too:
time_t curl_getdate(char *datestring, time_t *now );
If you don't want to link the whole library, you can just copy the code for that from here: https://github.com/curl/curl/blob/master/lib/parsedate.c
If it's available in your target system (eg Linux) you can use strptime.