Here a short example:
//---------------------------------------------------------------------------
int main(int argc, char **argv)
{
int n;
int done;
struct tm *tms,tm1,tm2;
time_t timer,timer1;
struct ffblk ffblk;
int cday,cmon,cyy,diff,td,tmo,tyy,diffm,diffy;
int day,mon,yy;
char text[256];
char path[256],drive[4],dir[256],name[256],ext[4];
n=argc; //Number of Arguments
if(n!=3)
{
printf("Falsche Anzahl von Argumenten : %d\n",n);
scanf("%c",&text[0]);
exit(2);
}
*argv++; // the first Argument is not needed (Loadfile)
strcpy(text,*argv++); // argument is String
diff=atoi(*argv); // Argument is Integer
hnd
hasso55@yahoo.com