home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OpenStep 4.2J (Developer)
/
os42jdev.iso
/
NextDeveloper
/
Source
/
GNU
/
cctools
/
libstuff
/
round.c
< prev
Wrap
C/C++ Source or Header
|
1995-01-20
|
175b
|
16 lines
#include "stuff/round.h"
/*
* round() rounds v to a multiple of r.
*/
__private_extern__
long
round(
long v,
unsigned long r)
{
r--;
v += r;
v &= ~(long)r;
return(v);
}