#include <h/mh.h>

const char *
read_line(void)
{
    char *cp;
    static char line[BUFSIZ];

    fflush(stdout);
    if (fgets(line, sizeof(line), stdin) == NULL)
            return NULL;
    if ((cp = strchr(line, '\n')))
	*cp = 0;
    return line;
}


#include <h/mh.h>
#include <h/utils.h>

const char *
read_line(void)
{
    static char line[BUFSIZ];

    fflush(stdout);
    if (fgets(line, sizeof(line), stdin) == NULL)
            return NULL;
    TrimSuffixC(line, '\n');

    return line; /* May not be a complete line. */
}

Replace strchr() condition with TrimSuffixC().
Replace strchr() condition with TrimSuffixC().
