Project/app_code/background.c
int check_backgrounding(char **argv)
{
	int i=0;
	while(argv[i]!=NULL)
	{
		i++;
	}
	i--;
	if(strcmp(argv[i],"&")==0)
		return 1;

	return 0;
}
/*this function used in main to check if user has asked the process to be put in background*/
this function used in main to check if user has asked the process to be put in background
this function used in main to check if user has asked the process to be put in background
int check_backgrounding(char **argv)
{
	int i=0;
	while(argv[i]!=NULL)
	{
		i++;
	}
	i--;
	if(strcmp(argv[i],"&")==0)
		return 1;
	return 0;
}
int check_backgrounding ( char * * argv ) { int i = 0 ; while ( argv [ i ] != NULL ) { i ++ ; } i -- ; if ( strcmp ( argv [ i ] , " " ) == 0 ) return 1 ; return 0 ; }
this function used in main to check if user has asked the process to be put in background
this function used in main to check if user has asked the process to be put in background