Public Comment Number PC-UK0068 ISO/IEC CD 9899 (SC22N2620) Public Comment =========================================== Date: 1998-01-21 Author: Clive D.W. Feather Author Affiliation: Self Postal Address: Demon Internet Limited 322 Regents Park Road London N3 2QQ United Kingdom E-mail Address: Telephone Number: +44 181 371 1138 Fax Number: +44 181 371 1037 Number of individual comments: 1 Comment 1. Category: Other: rewording to show consistency Committee Draft subsection: 7.14.6.2 Title: Change the description of div() to show consistency Detailed description: Change the description of the div function (7.14.6.2) to: Description The /div/ function computes the quotient and remainder of the division of the numerator /numer/ by the denominator /denom/. Returns The /div/ function returns a structure of type /div_t/, comprising both the quotient and the remainder. The structure shall contain the following members, in either order: int quot; // quotient, equivalent to (numer / denom) int rem; // remainder, equivalent to (numer % denom) If either part of the result cannot be represented, the behavior is undefined.[*] [*] The function is equivalent to: div_t div (int numer, int denom) { return (div_t) { .quot = numer / denom, .rem = numer % denom }; } Alternatively, simply replace the entire description by the code in the suggested footnote.