add howmany macro
This commit is contained in:
7
compat.h
7
compat.h
@@ -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.
|
||||||
|
Reference in New Issue
Block a user