With the example found in a website, I'm trying to convert a char* to a SYSTEMTIME structure :
SYSTEMTIME st;
char *dateHeure = (char*)calloc(30,1);
strcpy(dateHeure, "18/02/2016 15:02:05");
sscanf(dateHeure, "%d/%d/%d %d:%d:%d", (int*)&st.wDay, (int*)&st.wMonth, (int*)&st.wYear, (int*)&st.wHour, (int*)&st.wMinute, (int*)&st.wSecond);
It works for all st's members BUT st.wMonth : it does not receive any value. What's wrong ?
Thank you for your help !