postat.c

来自「xen虚拟机源代码安装包」· C语言 代码 · 共 28 行

C
28
字号
#include <stdio.h>#include <string.h>extern int dump_privop_counts (char *buf, int len);extern int zero_privop_counts (char *buf, int len);intmain (int argc, char *argv[]){  static char buf[8192];  int res;  if (argc == 1)    res = dump_privop_counts (buf, sizeof (buf));  else if (argc == 2 && strcmp (argv[1], "--clear") == 0)    res = zero_privop_counts (buf, sizeof (buf));  else    {      printf ("usage: %s [--clear]\n", argv[0]);      return 1;    }  printf ("res=%d\n", res);  fputs (buf, stdout);  return 0;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?