
Write a program that copies standard input to standard output while masking a chosen byte sequence.
printf 'alpha beta alpha\n' | ./stream_mask alpha | cat -eExpected result
***** beta *****$For your own tracking. Tests grade your code.
printf 'aaaaa' | ./stream_mask aa | cat -eExpected result
****aExpected files
stream_mask.cAllowed functions
readwritestrlenmemmemmemmovemalloccallocreallocfreeprintffprintfperror
v0.40: Create exercises. Challenge the community.
Meet Studio →Write a program that copies standard input to standard output while masking a chosen byte sequence.
printf 'alpha beta alpha\n' | ./stream_mask alpha | cat -eExpected result
***** beta *****$For your own tracking. Tests grade your code.
printf 'aaaaa' | ./stream_mask aa | cat -eExpected result
****aExpected files
stream_mask.cAllowed functions
readwritestrlenmemmemmemmovemalloccallocreallocfreeprintffprintfperror
Run the tests to grade your code
Build your code, then check each test here. Open a result to inspect its output.