Thread: pch=strstr?

  1. #1
    random number generator reRanger's Avatar
    Join Date
    Oct 2004
    Posts
    44

    pch=strstr?

    Good Day:
    I have included pch=strstr (input1, 'good'); in my code, but I am receiving erorrs O' plenty; the code is supossed to detect a selected word ('good', for example) from a string and return it, I would think, to be stored in an array for use as a trigger in a following, Boolean function. Do I need to include a pointer such as, pch * strstr (input1, 'good') the variable being char*str[]="good"; ? I am not sure, but I know something is incorrect. Any suggestions would be greatly appreciated ...
    thank-you,
    reRanger
    "Nay! But you love the present life!"

  2. #2
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    1) Post the actual code
    2) Post the actual errors

Popular pages Recent additions subscribe to a feed