
Implement gm_puts, your own puts, which writes a string to standard output, adds a trailing newline, and returns a non-negative value on success.
gm_puts("git status")Expected result
git statusFor your own tracking. Tests grade your code.
gm_puts("")Expected result
Whitespace only: "\n"
Expected files
puts.cAllowed functions
writeAllowed headers
Standard C library
Implements the contract of a function from the standard C library.

v0.40: Create exercises. Challenge the community.
Meet Studio →Implement gm_puts, your own puts, which writes a string to standard output, adds a trailing newline, and returns a non-negative value on success.
gm_puts("git status")Expected result
git statusFor your own tracking. Tests grade your code.
gm_puts("")Expected result
Whitespace only: "\n"
Expected files
puts.cAllowed functions
writeAllowed headers
Standard C library
Implements the contract of a function from the standard C library.

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