Changeset 1673 for trunk/dll/uudecode.c
- Timestamp:
- Dec 30, 2012, 7:51:01 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/uudecode.c
r1544 r1673 47 47 static PSZ pszSrcFile = __FILE__; 48 48 49 / * prototypes */49 // prototypes 50 50 static BOOL decode(FILE * in, FILE * out); 51 51 static void outdec(char *p, FILE * f, int n); 52 52 53 / * single character decode */53 // single character decode 54 54 #define DEC(c) (((c) - ' ') & 077) 55 55 … … 73 73 } 74 74 75 / * search for header line */75 // search for header line 76 76 for (;;) { 77 77 if (!fgets(buf, sizeof(buf), in)) { … … 90 90 dest[CCHMAXPATH - 1] = 0; 91 91 { 92 / * place dest in same directory as filename by default... */92 // place dest in same directory as filename by default... 93 93 char build[CCHMAXPATH], *p; 94 94 … … 110 110 } 111 111 112 / * create output file */112 // create output file 113 113 moder = "ab+"; 114 114 out = xfsopen(dest, moder, SH_DENYWR, pszSrcFile, __LINE__, TRUE); … … 132 132 } 133 133 134 /* 134 /** 135 135 * copy from in to out, decoding as you go along. 136 136 */ … … 142 142 143 143 for (;;) { 144 / * for each input line */144 // for each input line 145 145 if (!xfgets(buf, sizeof(buf), in, pszSrcFile, __LINE__)) 146 146 return FALSE; … … 158 158 } 159 159 160 /* 160 /** 161 161 * output a group of 3 bytes (4 input characters). 162 162 * the input chars are pointed to by p, they are to
Note:
See TracChangeset
for help on using the changeset viewer.