> CheckPoint[i] = datatext; This is only a pointer, so when datatext is changed next time around the loop, then all the pointers to it will also...
My first suggestion would be to add some functions to separate some of the actions out from main. This will reduce clutter, and make testing...
Sure, there are lots of things wrong with it. > void main() http://c-faq.com/ansi/voidmain.html > #include<conio.h> This is a non-standard...
You asked here already. http://cboard.cprogramming.com/showthread.php?t=95905 But you ran away without even bothering to engage in a...
I could, but I'm not interested in reading code which has been posted without using code tags.
Well it would do, if you were storing the result in an unsigned char say. All the bits fell off the end! It needs to be in an unsigned long...
Telling us how you declared 'str' as well would be a bonus.
You mean that 2568095849 is (153 << 24) + (18 << 16) + (8 << 8) + 105 It's just a loop, with a shift and and add.
Use strtol(). One of the things it returns is a pointer to where it got to (ie, the dots between numbers). This you use to locate the start of...
Does your Encrypt function always result in a printable string, or can it result in any binary data? If it can result in binary data, then you...
Do you have any examples of what you're trying to accomplish?
> Well, when I print the IP value, this is the result > IP: 255.255.255.255fhv��� You don't append a \0 to the string you build up, so you get a...
It depends which operating system the program will be running on. For Unix/Linux, look at the opendir(), readdir() and closedir() functions....
Separate names with a comma.