My slstatus configuration
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 

17 líneas
252 B

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