Skip to content

Instantly share code, notes, and snippets.

@ileonte
Created April 12, 2016 12:32
Show Gist options
  • Select an option

  • Save ileonte/569020857d5b82f4bcabe110580379e8 to your computer and use it in GitHub Desktop.

Select an option

Save ileonte/569020857d5b82f4bcabe110580379e8 to your computer and use it in GitHub Desktop.
#include <unistd.h>
int main(void)
{
const char B1[] = "STDOUT\n";
const char B2[] = "STDERR\n";
write(1, B1, sizeof(B1) - 1);
write(2, B2, sizeof(B2) - 1);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment