My slstatus configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

16 rivejä
185 B

  1. #include <err.h>
  2. #include <unistd.h>
  3. #include "util.h"
  4. const char *
  5. hostname(void)
  6. {
  7. if (gethostname(buf, sizeof(buf)) == -1) {
  8. warn("hostname");
  9. return NULL;
  10. }
  11. return buf;
  12. }