how can i pass argc and argv to other function?

int main(int argc, char *argv[])
{
    abc(wat should i put here to pass argc and argv?)
}

int abc(wat should i put in here also?)
{
    process....
}

>>wat should i put in here also?)
identical to main()

int abc(int argc, char* argv[]);
int main(int argc, char *argv[])
{
    abc(argc, argv);
}
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.