head 1.1; access; symbols; locks georg:1.1; strict; comment @# @; 1.1 date 2007.01.10.10.45.25; author georg; state Exp; branches; next ; desc @@ 1.1 log @Initial revision @ text @
Stuff I had to search for a long time.
Stuff I had to search for a long time.
In Richard Stevens's book "Advanced Programming in the UNIX Environment" Chap. 19, running Programs from pseudo-terminals is explained, but the Example Program does not compile under AIX. I fixed it.
This is a very simple C Program, trying to reverse-lookup every IP in the given class C (ipv4 only) net. It prints addresses not having a reverse lookup, assuming you can use them.
Have a look into my photo galleries! Many of them are produced by a php script, which is able to show the original-size Pictures in a javasript (yyaggahh) Window. Several other features are included. You will also find the tool the generate the thumbnails there.
Since nobody I know can solve the witches puzzle without the help of a computer, I had to give C a try ;-) The original Version was written in Basic, but the C version is faster. I am sorry I dont know the name of the algorithm I use here, but maybe you can tell me! The solution comes within some miliseconds on contemporary hardware (speaking 2002).
This Program is in fact a Mastermind Player - the C version is very fast and allocates quite a lot of memory if you #define COLORS and #define PLACES suffiently high. Try and play!