VMS and div
Martin v.d. Boogaard
nboogaar at ruunsa.fys.ruu.nl
Thu Aug 2 20:24:00 AEST 1990
I experience a problem when compiling the following code on VAX/VMS V5.1-1.
#include <stdio.h>
#include <stdlib.h>
main ()
{
div_t thing;
thing = div ( 9, 4 );
printf ( "%d %d\n", thing.quot, thing.rem );
}
Instead of 2 and 1, the output consists of two numbers not resembling the
expected output from div.
Anyone any idea? Is div in vaxcrtl.olb rotten? Am I missing something?
Martin J. van den Boogaard | Dept. of Atomic & Interface Physics
| Debye Institute--Utrecht University
P.O. Box 80.000 |
NL-3508 TA Utrecht | decnet: ruunsc::boogaard
the Netherlands | bitnet: boogaard at hutruu51
+31 30 532904 | internet: nboogaar at fys.ruu.nl
More information about the Comp.lang.c
mailing list