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

17 行
209 B

  1. #include <sys/utsname.h>
  2. #include <stdio.h>
  3. #include "util.h"
  4. const char *
  5. kernel_release(void)
  6. {
  7. struct utsname udata;
  8. if (uname(&udata) < 0) {
  9. return NULL;
  10. }
  11. return bprintf("%s", udata.release);
  12. }