Mercurial > hg > xemacs-beta
comparison lib-src/cvtmail.c @ 438:84b14dcb0985 r21-2-27
Import from CVS: tag r21-2-27
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:32:25 +0200 |
parents | 3ecd8885ac67 |
children | 8de8e3f6228a |
comparison
equal
deleted
inserted
replaced
437:e2a4e8b94b82 | 438:84b14dcb0985 |
---|---|
33 * | 33 * |
34 * Author: Larry Kolodney, 1985 | 34 * Author: Larry Kolodney, 1985 |
35 */ | 35 */ |
36 | 36 |
37 | 37 |
38 #include <../src/config.h> | 38 #include <config.h> |
39 | 39 |
40 #include <stdio.h> | 40 #include <stdio.h> |
41 #include <string.h> | 41 #include <string.h> |
42 #include <stdlib.h> | |
42 | 43 |
43 #if __STDC__ || defined(STDC_HEADERS) | |
44 # include <stdlib.h> | |
45 #else | |
46 char *malloc (); | |
47 char *getenv (); | |
48 #endif | |
49 static void *xmalloc (unsigned int); | 44 static void *xmalloc (unsigned int); |
50 static void *xrealloc (char *ptr, unsigned int); | 45 static void *xrealloc (char *ptr, unsigned int); |
51 static void skip_to_lf (FILE *stream); | 46 static void skip_to_lf (FILE *stream); |
52 static void fatal (CONST char *s1, CONST char *s2); | 47 static void fatal (CONST char *s1, CONST char *s2); |
53 static void error (CONST char *s1, CONST char *s2); | 48 static void error (CONST char *s1, CONST char *s2); |
66 FILE *cff; | 61 FILE *cff; |
67 char pre[10]; | 62 char pre[10]; |
68 char name[14]; | 63 char name[14]; |
69 int c; | 64 int c; |
70 | 65 |
71 hd = (char *) getenv ("HOME"); | 66 hd = getenv ("HOME"); |
72 | 67 |
73 md = (char *) xmalloc (strlen (hd) + 10); | 68 md = (char *) xmalloc (strlen (hd) + 10); |
74 strcpy (md, hd); | 69 strcpy (md, hd); |
75 strcat (md, "/Messages"); | 70 strcat (md, "/Messages"); |
76 | 71 |