summaryrefslogtreecommitdiff
path: root/userspace/err.c
blob: 8e5d81986d9a9f53390b3f40d2d69299750ad57d (plain)
1
2
3
4
5
6
7
8
9
#include <stdio.h>

int main(int argc, char **argv)
{   
    char buf[]="This is a line written to stderr.\n";
    int l=fwrite(buf,sizeof(char),strlen(buf),stderr); // write stderr;
    printf("Written %i chars to stderr.\n",l);
    return 0;
}