1 2 3 4 5 6 7 8 9 10
//en.cppreference.com/w/c/io/puts.html #include <stdio.h> int main(void) { int rc = puts("Hello World"); if (rc == EOF) perror("puts()"); // POSIX requires that errno is set }