
Read a file descriptor to its end and report how many bytes and logical lines it contained.
stream_stats on a stream containing `red\nblue`Expected result
bytes=8 lines=2For your own tracking. Tests grade your code.
stream_stats on an empty streamExpected result
bytes=0 lines=0Expected files
stream_stats.cAllowed functions
readAllowed headers

v0.40: Create exercises. Challenge the community.
Meet Studio →Read a file descriptor to its end and report how many bytes and logical lines it contained.
stream_stats on a stream containing `red\nblue`Expected result
bytes=8 lines=2For your own tracking. Tests grade your code.
stream_stats on an empty streamExpected result
bytes=0 lines=0Expected files
stream_stats.cAllowed functions
readAllowed headers

Run the tests to grade your code
Build your code, then check each test here. Open a result to inspect its output.