My dmenu build
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

vor 18 Jahren
vor 18 Jahren
vor 18 Jahren
vor 18 Jahren
vor 18 Jahren
vor 18 Jahren
vor 18 Jahren
vor 18 Jahren
1234567891011121314151617181920212223242526272829303132333435363738
  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. #include <sys/wait.h>
  10. #include <unistd.h>
  11. void *
  12. emalloc(unsigned int size) {
  13. void *res = malloc(size);
  14. if(!res)
  15. eprint("fatal: could not malloc() %u bytes\n", size);
  16. return res;
  17. }
  18. void
  19. eprint(const char *errstr, ...) {
  20. va_list ap;
  21. va_start(ap, errstr);
  22. vfprintf(stderr, errstr, ap);
  23. va_end(ap);
  24. exit(EXIT_FAILURE);
  25. }
  26. char *
  27. estrdup(const char *str) {
  28. void *res = strdup(str);
  29. if(!res)
  30. eprint("fatal: could not malloc() %u bytes\n", strlen(str));
  31. return res;
  32. }