Hey there, i have created a dll that creates timesignatures, the source code is as follows...
#include "timestamp.h"
BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
{
return TRUE;
}
DLL_EXPORT char* CreateTimestamp(void)
{
time_t now;
struct tm *ts;
static char buf[80];
now = time(0);
ts = localtime(&now);
strftime(buf, sizeof(buf), "%d%m%Y%H%M%S", ts);
return buf;
}
DLL_EXPORT char* ReadTimestamp(void)
{
//Source For New Function would be here.
}
it returns a string for example: 16062011011300, how would i create a function that splits this up and returns something like 16/06/2011 01:13:00
Thanks,
Nathaniel Blackburn