My slstatus configuration
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

17 linhas
246 B

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