Sha256: 73cc9e06b054cf2606a7f1dc058441ccfa2b51103e8bbee9cebce25802d7bb1f
Contents?: true
Size: 401 Bytes
Versions: 6
Compression:
Stored size: 401 Bytes
Contents
#include <unistd.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <fcntl.h> /* * write to stdout and stderr */ int main(int argc, char **argv) { char *string; char *string_err; string = "a string written to standard out\n"; write(1,string,strlen(string)); string_err = "a string written to standard error\n"; write(2,string_err,strlen(string_err)); return(0); }
Version data entries
6 entries across 6 versions & 1 rubygems