My dmenu build
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

18 роки тому
18 роки тому
18 роки тому
18 роки тому
18 роки тому
18 роки тому
18 роки тому
18 роки тому
18 роки тому
123456789101112131415161718192021222324252627282930313233343536
  1. /* (C)opyright MMVI-MMVII Anselm R. Garbe <garbeam at gmail dot com>
  2. * See LICENSE file for license details.
  3. */
  4. #include "dmenu.h"
  5. #include <stdarg.h>
  6. #include <stdio.h>
  7. #include <stdlib.h>
  8. #include <string.h>
  9. void *
  10. emalloc(unsigned int size) {
  11. void *res = malloc(size);
  12. if(!res)
  13. eprint("fatal: could not malloc() %u bytes\n", size);
  14. return res;
  15. }
  16. void
  17. eprint(const char *errstr, ...) {
  18. va_list ap;
  19. va_start(ap, errstr);
  20. vfprintf(stderr, errstr, ap);
  21. va_end(ap);
  22. exit(EXIT_FAILURE);
  23. }
  24. char *
  25. estrdup(const char *str) {
  26. void *res = strdup(str);
  27. if(!res)
  28. eprint("fatal: could not malloc() %u bytes\n", strlen(str));
  29. return res;
  30. }