Skip to content

puts : write a character string

#include <stdio.h>
int puts(const char *s);
int _puts_r(void *reent, const char *s);
```### Description
puts writes the string at s (followed by a newline, instead of the trailing null) to the standard output stream.
The alternate function _puts_r is a reentrant version. The extra argument reent is a pointer to a reentrancy structure.### Returns
If successful, the result is a nonnegative integer; otherwise, the result is EOF.
---
**Authoritative source**: BUSMASTER DITA help source `puts.dita`, compiled into `BUSMASTER.CHM` with the application.