Pascal --> C question

Rahul Dhesi dhesi at bsu-cs.UUCP
Mon Mar 21 02:19:07 AEST 1988


In article <7490 at brl-smoke.ARPA> gwyn at brl.arpa (Doug Gwyn (VLD/VMB) <gwyn>)
writes:
>Assuming VMS C really does what the fellow said (which I doubt),
>it's a bug regardless of VMS's ideas about record-oriented files.

For the edification of all compiler writers, a log of a batch run under
VAX/VMS follows.

$! Batch run of "feature.c"
$ set default [.scr]
$ type feature.c
/* A "Hello world" program in three movements */
#include <stdio.h>

main()
{
   printf("He");  fflush(stdout);  printf("llo"); fflush(stdout); 
   printf(" wor"); fflush(stdout); printf("ld"); fflush(stdout);
   printf("\n");
}
$ cc feature.c
$ link feature
$ run feature
He
llo
 wor
ld

$ exit
  00R0DHESI    job terminated at 20-MAR-1988 11:07:48.01

  Accounting information:
  Buffered I/O count:          123      Peak working set size:  1732
  Direct I/O count:            214      Peak page file size:    2163
  Page faults:                3506      Mounted volumes:           0
  Charged CPU time:     0 00:00:21.68   Elapsed time:     0 00:01:12.68
-- 
Rahul Dhesi         UUCP:  <backbones>!{iuvax,pur-ee,uunet}!bsu-cs!dhesi



More information about the Comp.lang.c mailing list