Skip to content

check50 ANSI and HTML output do not make clear when stdout has unprintable characters #287

@dmalan

Description

@dmalan

As in a bug like

#include <stdio.h>

int foo(char c)
{
    printf('%c', c + 1);
    return 0;
}

int main(void)
{
    char c = 'a';
    printf('%c', foo(c));
}

which ends up printing b followed by an invisible NUL (because mainprintsfoo's return value) followed by \n, which wouldn't match an expectation of b\n, but whose NUL student could not see in check50`'s output.

Metadata

Metadata

Assignees

Labels

4.xIssues relating to check50 4.xenhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions