lldiv.3 (b18f2299302b0a9753621937d5b858bd9fefaa90) | lldiv.3 (7a4a63270ffd4cf0deae379b3ad32f57ea3c3e9d) |
---|---|
1.\" Copyright (c) 2001 Mike Barcroft <mike@FreeBSD.org> 2.\" All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 20 unchanged lines hidden (view full) --- 29.Os 30.Sh NAME 31.Nm lldiv 32.Nd returns quotient and remainder 33.Sh LIBRARY 34.Lb libc 35.Sh SYNOPSIS 36.In stdlib.h | 1.\" Copyright (c) 2001 Mike Barcroft <mike@FreeBSD.org> 2.\" All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 20 unchanged lines hidden (view full) --- 29.Os 30.Sh NAME 31.Nm lldiv 32.Nd returns quotient and remainder 33.Sh LIBRARY 34.Lb libc 35.Sh SYNOPSIS 36.In stdlib.h |
37.Ft lldiv_t 38.Fn lldiv "long long numer" "long long denom" | 37.Ft "lldiv_t" 38.Fn llabs "long long numer" "long long denom" |
39.Sh DESCRIPTION 40The 41.Fn lldiv 42function computes the value of 43.Fa numer 44divided by 45.Fa denom | 39.Sh DESCRIPTION 40The 41.Fn lldiv 42function computes the value of 43.Fa numer 44divided by 45.Fa denom |
46and returns the stored result in the form of the 47.Vt lldiv_t 48type. | 46and returns the stored result in the form of the lldiv_t type. |
49.Pp | 47.Pp |
50The 51.Vt lldiv_t 52type is defined as: 53.Bd -literal -offset indent | 48The lldiv_t type is defined as: 49.Pp 50.Bd -literal -offset indent -compact |
54typedef struct { 55 long long quot; /* Quotient. */ 56 long long rem; /* Remainder. */ 57} lldiv_t; 58.Ed | 51typedef struct { 52 long long quot; /* Quotient. */ 53 long long rem; /* Remainder. */ 54} lldiv_t; 55.Ed |
56.Pp |
|
59.Sh SEE ALSO 60.Xr div 3 , 61.Xr imaxdiv 3 , 62.Xr ldiv 3 , 63.Xr math 3 64.Sh STANDARDS 65The 66.Fn lldiv 67function conforms to 68.St -isoC-99 . 69.Sh HISTORY 70The 71.Fn lldiv 72function first appeared in 73.Fx 5.0 . | 57.Sh SEE ALSO 58.Xr div 3 , 59.Xr imaxdiv 3 , 60.Xr ldiv 3 , 61.Xr math 3 62.Sh STANDARDS 63The 64.Fn lldiv 65function conforms to 66.St -isoC-99 . 67.Sh HISTORY 68The 69.Fn lldiv 70function first appeared in 71.Fx 5.0 . |