Home » Archive

Articles in the C Programming Category

C Programming, Open Source, Windows »

[3 Jan 2009 | Author: 0xC0FF33 | No Comment | ]

As long as there is no device like the /dev/zero from unix on windows and no other alternative build in (or at least I don’t any), I decided (also out of some boredom) to write a tiny C program providing such functionality.
With the DevZero program you can create files of a given size of bytes, filled with null characters (0×00).

It is not really a device like a /dev/zero in unix and has a quite limited functionality, but feel free to expand or modify it, if you have some great ideas.
For …

C Programming, Windows »

[21 Nov 2008 | Author: 0xC0FF33 | No Comment | ]

It’s only a few days ago, that Rasco published his Chat server in C. With the first view to the code I noticed that it’s a unix only code, but it does not has to be and so I decided to port the program to the Windows platform.
It was only a change of a few lines. I had to put unix headers in a #ifndef _W32 block and add the WSAStartup() function.
I made the port with Dev-C++ 5, but it should be not to difficult to compile it with MinGW …

C Programming, Internet, Programming »

[17 Nov 2008 | Author: Rasco | No Comment | ]

Hi once again!
While doing some homework for my TechGI4 course (http://www.tkn.tu-berlin.de/) during the last semester, I got carried away and expanded my work to a little chat server.
It is designed to support telnet clients, so I didn’t have to write my own client, because most operating systems have a telnet client.
It’s not very well commented, but maybe I’ll add some comments later.
Have fun!
Download the source code here.