The aftp_extract_date_mode call extracts the way file dates are handled for data transfer. If the aftp_set_date_mode call has not been invoked, the AFTP default date mode value is returned.
AFTP_ENTRY aftp_extract_date_mode(
IN AFTP_HANDLE_TYPE connection_id,
OUT AFTP_DATE_MODE_TYPE AFTP_PTR date_mode,
OUT AFTP_RETURN_CODE_TYPE AFTP_PTR return_code
);
{
AFTP_HANDLE_TYPE connection_id;
AFTP_RETURN_CODE_TYPE aftp_rc;
AFTP_DATE_MODE_TYPE date_mode;
/*
* Before issuing the example call, you must have:
* a connection_id, use: aftp_create()
*/
aftp_extract_date_mode(
connection_id,
&date_mode,
&aftp_rc);
if (aftp_rc != AFTP_RC_OK) {
fprintf(stderr, "Error extracting AFTP date mode.\n");
}
}
None.