ok, my program is working, and infact im quite happy, the only reasons being, its MY program and it WORKS!!!! usually not two words used in the same scentance!!!!

just kiddin!!

Anyway, only one slight error,

i cant get the exit it work, when i press 4 it comes up witht the question "do you want to exit y/n?" but regardless of what i press the program exits

any ideas

Code:
#include <conio.h>
#include <stdio.h>

void main(void){

	int Choice;

	void LPT_Check(void);
	void COM_Check(void);
	void EXIT(void);
	void RJ45_Check(void);

	clrscr();

	printf("\nJon Butterworths Port Testing Program");
	printf("\n");
	printf("\n");
	printf("\nPlease make a selection...\n");
	printf("\n");

	printf("[1] LPT Check\n");
	printf("[2] COM Check\n");
	printf("[3] RJ45 Check\n");
	printf("[4] Exit\n");
	printf("\nSelection:");

	if(scanf("%d",&Choice));

	switch(Choice){

		case 1:LPT_Check();
			break;
		case 2:COM_Check();
			break;
		case 3:RJ45_Check();
			break;
		case 4:EXIT();
			break;
		}
}

	void LPT_Check(void){

		printf("\nLPT Port Work in progress........");
		printf("\n");
		printf("\nPress any key to continue.....");
		getch();
	}

	void COM_Check(void){

		printf("\nCom Port Work in progress.......");
		printf("\n");
		printf("\nPress any key to continue.....");
		getch();

	}

	void RJ45_Check(void){

		printf("\nRJ45 Port Work in progress.......");
		printf("\n");
		printf("\nPress any key to continue......");
		getch();

	}

	void EXIT(void){

		char yn;

		clrscr();
		printf("\ndo you want to exit y/n?");

		scanf("%c",&yn);

		switch(yn)
		{
			case 'y' :exit(0);
			case 'n' :main();
		}
		getch();
		}