Project/app_code/pipe.c
int check_pipe(char *argv[])
{
	int c=0;

	/*ans is used to avoid two return in this program*/
	int ans=0;

	while(argv[c]!=NULL)
	{
		if(strcmp(argv[c],"|")==0)
			ans = 1;
		c++;
	}
	return ans;
}
/*code for check_pipe*/
/*return 1 if true else false*/
code for check_pipe
return 1 if true else false
code for check_pipe return 1 if true else false
int check_pipe(char *argv[])
{
	int c=0;
	int ans=0;
	while(argv[c]!=NULL)
	{
		if(strcmp(argv[c],"|")==0)
			ans = 1;
		c++;
	}
	return ans;
}
int check_pipe ( char * argv [ ] ) { int c = 0 ; int ans = 0 ; while ( argv [ c ] != NULL ) { if ( strcmp ( argv [ c ] , " " ) == 0 ) ans = 1 ; c ++ ; } return ans ; }
code for check_pipe
return 1 if true else false
code for check_pipe return 1 if true else false
/*ans is used to avoid two return in this program*/