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