get_std_in() to read in appropriate number of chars from stdin without segfaulting implemented.