For my OS class I\'m supposed to implement Linux\'s cat using only system calls (no printf)
Reading this reference I found it being used to print to a file. I guess I sh
#include /* ... */ const char msg[] = "Hello world"; write( STDOUT_FILENO, msg, sizeof( msg ) - 1 );
First argument is the file descriptor for STDOUT (usually 1), the second is the buffer to write from, third is the size of the text in the buffer (-1 is to not print zero terminator).
STDOUT
1
-1