host/user_interface.c
/** Notify the user interface that the transaction parser has seen a new
  * Bitcoin amount/address pair.
  * \param text_amount The output amount, as a null-terminated text string
  *                    such as "0.01".
  * \param text_address The output address, as a null-terminated text string
  *                     such as "1RaTTuSEN7jJUDiW1EGogHwtek7g9BiEn".
  * \return false if no error occurred, true if there was not enough space to
  *         store the amount/address pair.
  */
Notify the user interface that the transaction parser has seen a new
Bitcoin amount/address pair.
\param text_amount The output amount, as a null-terminated text string
such as "0.01".
\param text_address The output address, as a null-terminated text string
such as "1RaTTuSEN7jJUDiW1EGogHwtek7g9BiEn".
\return false if no error occurred, true if there was not enough space to
store the amount/address pair.
Notify the user interface that the transaction parser has seen a new Bitcoin amount / address pair . \ param text_amount The output amount as a null - terminated text string such as " 0 . 01 " . \ param text_address The output address as a null - terminated text string such as " 1RaTTuSEN7jJUDiW1EGogHwtek7g9BiEn " . \ return false if no error occurred true if there was not enough space to store the amount / address pair .
bool newOutputSeen(char *text_amount, char *text_address)
{
    char *amount_dest;
    char *address_dest;
    if (num_outputs_seen >= MAX_OUTPUTS_RAM)
        return true;
    amount_dest = amount_list[num_outputs_seen];
    address_dest = address_list[num_outputs_seen];
    strncpy(amount_dest, text_amount, TEXT_AMOUNT_LENGTH);
    strncpy(address_dest, text_address, TEXT_ADDRESS_LENGTH);
    printf("\n");
    printf("Amount: %s\n", text_amount);
    printf("Address: %s\n", text_address);
    printf("\n");
    num_outputs_seen++;
    return false; 
}
bool newOutputSeen ( char * text_amount , char * text_address ) { char * amount_dest ; char * address_dest ; if ( num_outputs_seen >= MAX_OUTPUTS_RAM ) return true ; amount_dest = amount_list [ num_outputs_seen ] ; address_dest = address_list [ num_outputs_seen ] ; strncpy ( amount_dest , text_amount , TEXT_AMOUNT_LENGTH ) ; strncpy ( address_dest , text_address , TEXT_ADDRESS_LENGTH ) ; printf ( " \n " ) ; printf ( " \n " , text_amount ) ; printf ( " \n " , text_address ) ; printf ( " \n " ) ; num_outputs_seen ++ ; return false ; }
Notify the user interface that the transaction parser has seen a new
 Bitcoin amount/address pair.
Notify the user interface that the transaction parser has seen a new Bitcoin amount / address pair .
/* not enough space to store the amount/address pair */ /* Success */