What do you want it to do? (Right now you're passing an array as the second argument to strstr(), which is expecting a string. As stated in the [man]strstr[/man] page, "If needle is not a string, it is converted to an integer and applied as the ordinal value of a character," which I'm guessing is not what you want to do.)