Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!mcsun!hp4nl!ruuinf!ruunsa!nboogaar From: nboogaar@ruunsa.fys.ruu.nl (Martin v.d. Boogaard) Newsgroups: comp.lang.c Subject: VMS and div Summary: Anyone any problem with div & div_t on VMS? Keywords: stdlib.h, div, div_t, dec, vaxcrtl Message-ID: <1371@ruunsa.fys.ruu.nl> Date: 2 Aug 90 10:24:00 GMT Distribution: comp Organization: University of Utrecht, Dept. of Physics Lines: 26 I experience a problem when compiling the following code on VAX/VMS V5.1-1. #include #include 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