Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 708 → Rev 709

/shark/trunk/ports/snapshot/snapshot.c
102,7 → 102,7
{
char out_st[40];
register int i;
unsigned char tmp;
unsigned char tmp[3];
DOS_FILE *outf;
 
if ((outf = DOS_fopen(fname, "w")) == NULL) {
113,7 → 113,9
cprintf(out_st);
 
for (i = 0; i < sslot[nbuff].wy * sslot[nbuff].wx; i++) {
tmp = (unsigned char)(*(int *)(sslot[nbuff].buff + i * 2));
tmp[0] = *(unsigned char *)(sslot[nbuff].buff + i);
tmp[1] = ' ';
tmp[2] = 0;
DOS_fwrite(&tmp, 1, 1, outf);
}
DOS_fclose(outf);