/* The function displays buffer contents */ void display (Buffer *ptrBuffer){ printf("\nPrinting buffer parameters:\n\n"); printf("The capacity of the buffer is: %d\n",b_capacity(ptrBuffer)); printf("The current size of the buffer is: %d\n",b_size(ptrBuffer)); printf("\nPrinting buffer contents:\n\n"); b_print(ptrBuffer); }
/* The function display buffer contents */ void display (Buffer *ptrBuffer){ printf("\nPrinting input buffer parameters:\n\n"); printf("The capacity of the buffer is: %d\n",b_capacity(ptrBuffer)); printf("The current size of the buffer is: %d\n",b_size(ptrBuffer)); printf("The reallocation flag is: %d\n",b_rflag(ptrBuffer)); printf("\nPrinting input buffer contents:\n\n"); b_print(ptrBuffer); }
void display(Buffer *ptr_Buffer){ printf("\nPrinting buffer parameters:\n\n"); printf("The capacity of the buffer is: %d\n", b_capacity(ptr_Buffer)); printf("The current size of the buffer is: %d\n", b_size(ptr_Buffer)); printf("The operational mode of the buffer is: %d\n", b_mode(ptr_Buffer)); printf("The increment factor of the buffer is: %u\n", b_inc_factor(ptr_Buffer)); printf("The current mark of the buffer is: %d\n", b_mark(ptr_Buffer)); /*printf("The reallocation flag is: %d\n",b_rflag(ptr_Buffer));*/ printf("\nPrinting buffer contents:\n\n"); b_print(ptr_Buffer); }