Telephone Directory Program in C

This is telephone directory program written in C and uses BGI Graphics to display data. The program takes Name, Phone Number, Mobile Number, Address and saves it in newly created file.

The program also shows saved record on screen. User can find and delete the records too.

TCP client and server

This example illustrates a simple TCP server that accepts incoming client connections. Once a client connection is established, a thread is spawned to read data from the client and echo it back (if the echo option is not disabled). Compile: cl -o Server Server.c...

C implementation of Text Box

A small text box for console based applications. It can be used as a help dialog box or showing the tips, hints in a game or as an information box. Its length and height can be changed.

UDP Sender and Receiver

Sender: This sample sends UDP datagrams to the specified recipient. The -c option first calls connect() to associate the recipient’s IP address with the socket handle so that the send() function can be used as opposed to the sendto() call. Compile: cl -o Sender...

Making Mouse Pointers

How to create the mouse pointers in c language. Different shapes can be given to the mouse pointer by changing the values of the cursor variable array.

C Program to illustrate how to write ICMP Ping program

This sample illustrates how an ICMP ping app can be written using the SOCK_RAW socket type and IPPROTO_ICMP protocol. By creating a raw socket, the underlying layer does not change the protocol header so that when we submit the ICMP header nothing is changed so that the receiving end will see an ICMP packet. Additionally, we use the record route IP option to get a round trip path to the endpoint. Note that the size of the IP option header that records the route is limited to nine IP addresses.

graphics

This is the graphics.h header file which contains all the graphics functions and their implementations. It is quite nice to have a look at header files just to know more about functions and their parameters. Also it tells about different structures, enums defined in...

Print pyramids and diamonds shpaes in C language

I have been receiving lot of emails and requests through the forums and inline forums attached to the tutorials about how to print pyramids and diamonds in different formats. So I have written this article to demonstrate how you can print pyramids and diamonds using...

Shortest Path

This program finds the shortest path between two cities, provided that the map of the two cities and the distances are provided.   Shortest Path (109.7 KiB, 9,921...

Fly away to your vacation

The object of the game is to get to your proper plane on time so you can fly away to your vacation. Of course there a few obstacles and problems along the way and they will be brought up at the appropriate time. It will be up to you to solve the puzzles associated...

Pointer to a Function

An example of using a pointer to a function. It must be pointed out that there is nothing new here, the pointer to a function is available in ANSI-C as well as in C++ and works in the manner described here for both languages. It is not regularly used by most C...