My slstatus configuration
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

14 行
262 B

  1. /* See LICENSE file for copyright and license details. */
  2. #include <stdio.h>
  3. #include "../util.h"
  4. const char *
  5. entropy(void)
  6. {
  7. int num;
  8. return (pscanf("/proc/sys/kernel/random/entropy_avail", "%d", &num) == 1) ?
  9. bprintf("%d", num) : NULL;
  10. }