nboogaar@ruunsa.fys.ruu.nl (Martin v.d. Boogaard) (08/02/90)
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@hutruu51 +31 30 532904 | internet: nboogaar@fys.ruu.nl