View Single Post
  #22  
Old 03-27-2012
Sanmayce's Avatar
Sanmayce Sanmayce is offline
Aspiring Overclocker
 
Join Date: Mar 2012
Location: Sofia
Posts: 21
Rep Power: 0
Sanmayce is just getting started
Default

Thanks Neuromancer.

>... might want to clean up your site a bit ...
Yeah you are right, I piled up all kind of stuff in a mumbo-jumbo manner, but provided quick links/tags to easy the pain as the following being the home-page/tag of 'Monstrous Jesters' package:
http://www.sanmayce.com/Downloads/index.html#Jesters

Last night I updated rev. B with rev. C (adding ZPAQ as 7th test, and converting qpress.txt to CRLF).

If you are interested here is the converter:

// LF2CRLF.C written by Kaze

#include <stdio.h>

#define LF 10
#define CR 13

main(int argc, char **argv)
{
FILE *in;
FILE *out;
char buffer[1];
char PrevChar[1];

if (argc != 3) {
printf("Usage: LF2CRLF infile outfile\n");
exit(13);
}

if ((in = fopen(argv[1], "rb")) == NULL) {
printf("Can't open %s\n",argv[1]);
exit(1);
}
if ((out = fopen(argv[2], "wb")) == NULL) {
printf("Can't open %s\n",argv[2]);
exit(2);
}

PrevChar[0]=0;
while (fread(buffer, sizeof(char), 1, in) == 1) {
if (buffer[0] == LF && PrevChar[0] != CR)
fputc(CR, out); // Add a CR before the LF only if the previous char was not CR
fputc(buffer[0], out);
PrevChar[0]=buffer[0];
}
}

Thanks Bones.

Glad glad I am for your readiness to help me.
__________________
Get down get down get down get it on show love and give it up
What are you waiting on?
Reply With Quote