summaryrefslogtreecommitdiff
path: root/userspace/err.c
diff options
context:
space:
mode:
Diffstat (limited to 'userspace/err.c')
-rw-r--r--userspace/err.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/userspace/err.c b/userspace/err.c
index b8dc8ed..7a33e69 100644
--- a/userspace/err.c
+++ b/userspace/err.c
@@ -2,8 +2,8 @@
int main()
{
- char buf[]="errrrrrro\n";
- printf("writing some err\n");
- fwrite(buf,1,10,stderr); // write stderr;
+ 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;
}