VMware Interview Question
145 Interview Reviews |
Back to all VMware Interview Questions & Reviews
Interview questions and reviews posted anonymously by interview candidates
Interview Question for Senior Member of Technical Staff at VMware:
Implement strstr() in C.
| Tags: | coding See more , See less 8 |
See more for this VMware Senior Member of Technical Staff Interview
Helpful Question?
Yes |
No
Inappropriate?



0 of 0 people found this helpful
by MiKL~:
strRef="sdfsda123jklkjljk";
lref=strlen(strRef);
lin=strlen(strIn);
for(i=0; i<lref; i++)
{
if(!strncmp(strIn, strref+i; lin)) // compare strIn within strRef for lin characters
return strRef+i;
}
return false;