don't know if you can help me with this,
Code:
void populate_output_record(RecordIn * input, RecordOut * output)
{
#ifdef DEBUG
printf("In populate_output_record().\n");
fflush(NULL);
#endif
memset(output, SPACE_INT, sizeof(RecordOut));
memcpy(output->country, input->country, I_COUNTRY_LEN);
memcpy(output->region_code, input->region_code, I_REGION_CODE_LEN);
memcpy(output->region_name, input->region_name, I_REGION_NAME_LEN);
memcpy(output->country_iso3_code, input->country_iso3_code, I_COUNTRY_ISO3_CODE_LEN];
memcpy(output->country_iso2_code, input->country_iso2_code, I_COUNTRY_ISO2_CODE_LEN];
memcpy(output->entity_code, input->entity_code, I_ENTITY_CODE_LEN];
memcpy(output->entity_name, input->entity_name, I_ENTITY_NAME_LEN];
memcpy(output->cirprecno, fprint(input, "%d", cirprecno), I_CIRPRECNO_LEN];
memcpy(output->customer_defined_code, input->customer_defined_code I_CUSTOMER_DEFINED_CODE_LEN];
memcpy(output->service_order_ref, input->service_order_ref, I_SERVICE_ORDER_REF_LEN];
etc.,
cirprecno is the field thats looks like 1724470.00
and needs to look like 1724470
but I cannot workout how to format it while processing
tia,