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.
|
- #include <err.h>
- #include <unistd.h>
-
- #include "util.h"
-
- const char *
- hostname(void)
- {
- if (gethostname(buf, sizeof(buf)) == -1) {
- warn("hostname");
- return NULL;
- }
-
- return buf;
- }
|