My slstatus configuration
Non puoi selezionare più di 25 argomenti
Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
|
- /* See LICENSE file for copyright and license details. */
- #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;
- }
|