It's unexplainable...

Lance Speelmon - UCS speelmo at bronze.ucs.indiana.edu
Thu Jan 31 07:36:05 AEST 1991


Would anyone please explain to me why my output is not what I am
expecting...  Here is a script of my source and the output...

Thanks,
Lance
-----------------------------------------------------

Script started on Wed Jan 30 15:15:36 1991
/dev/ttyp1: Not owner
bronze::/u3/speelmo/c/test:26>> cat foo.c
#include <stdio.h>

void main(void){
  printf("The date is: ");
  system("date");
  printf("\n");
}
bronze::/u3/speelmo/c/test:27>> cc foo.c
bronze::/u3/speelmo/c/test:28>> a.out
Wed Jan 30 15:16:17 EST 1991
The date is: 
bronze::/u3/speelmo/c/test:29>> 
script done on Wed Jan 30 15:16:21 1991
-- 
==============================================================================
| Lance Speelmon                      |  University Computing Services       | 
| speelmo at bronze.ucs.indiana.edu      |  Network Operations Center           |
==============================================================================



More information about the Comp.lang.c mailing list