getpagesize.c
来自「内存管理工具Exmap。该工具比 ps 或 top 更精确」· C语言 代码 · 共 23 行
C
23 行
#include <stdio.h>#include <unistd.h>int main(){ char *comments[] = { "This file is auto-generated. Please do not edit.", "This value is the result of the getpagesize() call.", "We need this trickery to get a compile-time value for the page size.", NULL }; char **p = comments; while (*p != NULL) { printf("/* %s */\n", *p); p++; } printf("\n"); printf("#define CURRENT_PAGE_SIZE (%d)\n", getpagesize()); return 0;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?