Browse Source

randomtrace.c: Error to stderr.

Lorenz Bung 8 years ago
parent
commit
cae41d3f9b
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      hw4/simu3/randomtrace.c

+ 1
- 1
hw4/simu3/randomtrace.c View File

6
   srand(time(NULL));
6
   srand(time(NULL));
7
 
7
 
8
   if (argc != 3) {
8
   if (argc != 3) {
9
-    printf("Usage: ./randomtrace <count> <size>\n");
9
+    fprintf(stderr, "Usage: ./randomtrace <count> <size>\n");
10
     return -1;
10
     return -1;
11
   }
11
   }
12
 
12
 

Loading…
Cancel
Save