Hi all!
I found a good source and I'm editing it.
My only problem is that the source uses fprintf.
How can I acces file data so I can parse it as string?Code:fprintf(file, "%d", i);
Or convert file into a C-string?
Thanks!
Hi all!
I found a good source and I'm editing it.
My only problem is that the source uses fprintf.
How can I acces file data so I can parse it as string?Code:fprintf(file, "%d", i);
Or convert file into a C-string?
Thanks!
* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with xfce4.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with xfce4.
So, you want the number output to a string, rather than a file, is that it?
You can use "sprintf(str, "%d", i)" for that, if you like.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
I thought in that, but the thing is that uses something like this:
BTW: Is md5 code that I foundCode:FILE *in = stdin, *out = stdout; in = fopen(pszFile, "rb"); in = stdin; _setmode(_fileno(in), _O_BINARY); for (j = 0; j < sizeof signature; j++) { fprintf(out, hexfmt, signature[j]); } ///...
* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with xfce4.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with xfce4.