As you learned in Segment 364, malloc
returns a pointer of type
void
. The description
pointer is of type char
.
Accordingly, you must cast the pointer returned by malloc
, producing
a pointer of type char
:
(char*) malloc (strlen (input_buffer) + 1);