#include <stdio.h>
#include <string.h>
bool a[256]={false};
bool b[256]={false};
void fun(char *c,char *d)
{
int k=strlen(c);
int i=0;
int j;
for(;i<k;i++){j=c[i];a[j]=true;}
k=strlen(d);
for(i=0;i<k;i++){j=d[i];if(a[j]) b[j]=true;}
}
int main()
{
int i=0;
char c[]="The specified location is within the bounds of the object, but not close to the image. For example, a point in the middle";
char d[]="Small, thin, or detailed objects can use this value. ";
fun(c,d);
printf("the same char:\n");
for(;i<256;i++){if(b[i]) printf("%c",i);}
printf("\n");
return 1;
}