omg this is driving me nutz!!!!!!!

i want to make this code into a function...

#include <stdio.h>
#include <iostream.h>

int main(int argc, char *argv[])
{
printf("%S",argv[0]);
cout<<argv[0]<<endl;
return 0;
}

i have tried hundreds of ways and i am about to go insane!!!!!!!!!

this is one of my many pittifull atempts!!!!!

char Findname()
{
printf("%S",argv[0]);
cout<<argv[0]<<endl;
return argv[0];
}