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

int main()
{   
    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;
}