csci4061/notes/14-virtual-memory-code/page-size.c
Michael Zhang 041f660ccd
f
2018-01-29 17:28:37 -06:00

9 lines
211 B
C

#include <stdio.h>
#include <unistd.h> /* sysconf(3) */
int main(void) {
printf("The page size for this system is %ld bytes.\n",
sysconf(_SC_PAGESIZE)); /* _SC_PAGE_SIZE is OK too. */
return 0;
}