Parent Directory
|
Revision Log
|
Patch
revision 1305 by stargo, Thu Sep 21 19:00:11 2006 UTC | revision 1306 by astrand, Fri Oct 27 12:59:38 2006 UTC | |
---|---|---|
# | Line 1079 xmalloc(int size) | Line 1079 xmalloc(int size) |
1079 | return mem; | return mem; |
1080 | } | } |
1081 | ||
1082 | /* Exit on NULL pointer. Use to verify result from XGetImage etc */ | |
1083 | void | |
1084 | exit_if_null(void *ptr) | |
1085 | { | |
1086 | if (ptr == NULL) | |
1087 | { | |
1088 | error("unexpected null pointer. Out of memory?\n"); | |
1089 | exit(1); | |
1090 | } | |
1091 | } | |
1092 | ||
1093 | /* strdup */ | /* strdup */ |
1094 | char * | char * |
1095 | xstrdup(const char *s) | xstrdup(const char *s) |
|
ViewVC Help | |
Powered by ViewVC 1.1.26 |