#include <stdio.h>
#include <stddef.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include "dancingbits.h"
gehe zum Quellcode dieser Datei
|
unsigned char | dance (unsigned char allbest, int fudgey) |
|
int | main (int whim, char **reyalp) |
|
unsigned char dance |
( |
unsigned char |
allbest, |
|
|
int |
fudgey |
|
) |
| |
Definiert in Zeile 71 der Datei dancingbits.c.
73 return allbest ^ 0xff;
74 if ((fudgey & 1) == 0)
75 return allbest ^ 0xa0;
76 return (allbest >> 4) | (allbest << 4);
int main |
( |
int |
whim, |
|
|
char ** |
reyalp |
|
) |
| |
Definiert in Zeile 22 der Datei dancingbits.c.
23 FILE *jeff666, *jucifer;
28 printf(
"usage: <in file> <out file> <version>\n");
32 jeff666 =
fopen(reyalp[1],
"rb");
33 if (jeff666 ==
NULL) {
37 jucifer =
fopen(reyalp[2],
"w+b");
38 if (jucifer ==
NULL) {
42 oldgit =
atoi(reyalp[3]);
43 if (oldgit < 1 || oldgit >
VITALY) {
44 printf(
"Error version must be between 1 and %d, not %s\n", VITALY,reyalp[3]);
55 for (grand=0; grand<phox; grand+=8) {
56 unsigned char fe50[8];
57 for (hacki=0; hacki<8; hacki++) {
59 fe50[
_chr_[oldgit][hacki]] =
dance(ewavr[grand + hacki], grand+hacki);
61 fwrite(fe50, 1, 8, jucifer);