My dmenu build
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

18 yıl önce
18 yıl önce
18 yıl önce
18 yıl önce
18 yıl önce
18 yıl önce
18 yıl önce
18 yıl önce
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. }