The aftp_extract_data_type call extracts the data type for file transfers. If the aftp_set_data_type call has not been invoked, the AFTP default data type value is returned.
AFTP_ENTRY aftp_extract_data_type(
IN AFTP_HANDLE_TYPE connection_id,
OUT AFTP_DATA_TYPE_TYPE AFTP_PTR data_type,
OUT AFTP_RETURN_CODE_TYPE AFTP_PTR return_code
);
{
    AFTP_HANDLE_TYPE        connection_id;
    AFTP_RETURN_CODE_TYPE   aftp_rc;
    AFTP_DATA_TYPE_TYPE     data_type;
    /*
     * Before issuing the example call, you must have:
     *    a connection_id, use:  aftp_create()
     */
    aftp_extract_data_type(
        connection_id,
        &data_type,
        &aftp_rc);
    if (aftp_rc != AFTP_RC_OK) {
        fprintf(stderr, "Error extracting AFTP data type.\n");
    }
}
 None.