]void menu()
{
int option;
printf("what would you like to do?");
printf("\n\t1. Create an Archive");
printf("\n\t2. extract an archive");
printf("\n\t3. Exit.");
scanf("%d", &option);
action( option );
}
void action(int option)
{
int n1,n2;
if (option == 1)
{
// how do i get from here to my code thats in the main function ?
}
moroccanplaya 0 Junior Poster
Narue 5,707 Bad Cop Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.