add howmany macro

This commit is contained in:
Todd C. Miller
1998-09-09 00:45:17 +00:00
parent 0c54ebc581
commit 6465c5eb47

View File

@@ -84,6 +84,13 @@
# define S_IRWXU 0000700 /* rwx for owner */ # define S_IRWXU 0000700 /* rwx for owner */
#endif /* S_IRWXU */ #endif /* S_IRWXU */
/*
* Some OS's may not have this.
*/
#ifndef howmany
#define howmany(x, y) (((x) + ((y) - 1)) / (y))
#endif
/* /*
* We need to know how long the longest password may be. * We need to know how long the longest password may be.
* For alternate password schemes we need longer passwords. * For alternate password schemes we need longer passwords.