puts
raw OCR
Outputs a string to stdout.
Defined in header <stdio.h>
Syntax
#include <stdio.h>
int puts(const char *s);
Portability
| DOS | UNIX | Windows | ANSI C | C++ only |
|---|---|---|---|---|
| ■ | ■ | ■ |
Remarks
puts copies the null-terminated string s to the standard output stream stdout and appends a newline character.
Return value
On successful completion, puts returns a nonnegative value. Otherwise, it returns a value of EOF.
See also
Differences from modern implementations
Nothing recorded yet.
Modern references
These are search links, not yet checked by hand.
Stable link: /3.1/stdio.h/puts/
· short form /3.1/puts/