2 * vim:ts=4:sw=4:expandtab
9 * Try to get the socket path from X11 and return NULL if it doesn’t work.
11 * The memory for the socket path is dynamically allocated and has to be
12 * free()d by the caller.
15 char *socket_path_from_x11();
18 * Safe-wrapper around malloc which exits if malloc returns NULL (meaning that
19 * there is no more memory available)
22 void *smalloc(size_t size);
25 * Safe-wrapper around calloc which exits if malloc returns NULL (meaning that
26 * there is no more memory available)
29 void *scalloc(size_t size);
32 * Safe-wrapper around realloc which exits if realloc returns NULL (meaning
33 * that there is no more memory available).
36 void *srealloc(void *ptr, size_t size);
39 * Safe-wrapper around strdup which exits if malloc returns NULL (meaning that
40 * there is no more memory available)
43 char *sstrdup(const char *str);