| 140 | | REPEAT_16( fprintf( ioQQQ, " "); ) |
| 141 | | REPEAT_4( fprintf( ioQQQ, " "); ) |
| 142 | | REPEAT_2( fprintf( ioQQQ, " ");) |
| 143 | | fprintf( ioQQQ, " "); |
| 144 | | for(i=0; i<31; ++i ) |
| 145 | | fprintf( ioQQQ, "*"); |
| 146 | | fprintf( ioQQQ, "*"); |
| 147 | | fprintf( ioQQQ, "> Cloudy %s <", version.chVersion); |
| 148 | | for(i=0; i<32; ++i ) |
| 149 | | fprintf( ioQQQ, "*"); |
| | 139 | fprintf( ioQQQ, "%23c", ' ' ); |
| | 140 | int len = strlen(version::Inst().chVersion); |
| | 141 | int repeat = (72-len)/2; |
| | 142 | for( i=0; i < repeat; ++i ) |
| | 143 | fprintf( ioQQQ, "*" ); |
| | 144 | fprintf( ioQQQ, "> Cloudy %s <", version::Inst().chVersion ); |
| | 145 | for( i=0; i < 72-repeat-len; ++i ) |
| | 146 | fprintf( ioQQQ, "*" ); |
| 167 | | { |
| 168 | | /* print leading space and first * */ |
| 169 | | fprintf( ioQQQ, " * "); |
| 170 | | |
| 171 | | j = 0; |
| 172 | | /* print actual command */ |
| 173 | | while( input.chCardSav[i][j] !='\0' ) |
| 174 | | { |
| 175 | | fprintf( ioQQQ, "%c", input.chCardSav[i][j] ); |
| 176 | | ++j; |
| 177 | | } |
| 178 | | |
| 179 | | /* flush out rest of space then * */ |
| 180 | | while( j<80 ) |
| 181 | | { |
| 182 | | fprintf( ioQQQ, "%c", ' ' ); |
| 183 | | ++j; |
| 184 | | } |
| 185 | | /* end the line */ |
| 186 | | fprintf( ioQQQ, "*\n" ); |
| 187 | | } |
| | 163 | fprintf( ioQQQ, "%23c* %-80s*\n", ' ', input.chCardSav[i] ); |