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