27 DropSuffix(name, suffix)
28 char* name; char* suffix;
41 if (t != (char*) 0 && strcmp(t, suffix) == 0) {
52 if ((r = fopen(s, mode)) == NULL) {
54 Error("cannot open %s", s);
61 #define ONETHOUSAND 1000
64 * Print a positive integer with commas
72 if (n < ONETHOUSAND) {
73 fprintf(fp, "%d", (int)n);
75 CommaPrint(fp, n / ONETHOUSAND);
76 fprintf(fp, ",%03d", (int)(n % ONETHOUSAND));
86 r = (void*) malloc(n);
89 Disaster("%s, sorry, out of memory", hpfile);
100 extern void *realloc();
105 Disaster("%s, sorry, out of memory", hpfile);
116 r = (char*) xmalloc(strlen(s)+1);
127 r = (char*) xmalloc(strlen(s)+strlen(t)+1);