Grep for word and any text inside parethesis

Couple of points:

  1. IGNORECASE construct is specific to gawk - not available in other versions of awk (including Solaris' nawk or /usr/xpg4/bin/awk).

  2. If you were to use gawk, the proper way to use IGNORECASE, would be:
    IGNORECASE=1 gawk 'whateverGAWKcodeComesHere' myInputFile

  3. To do string matching ignoring case with other (NONgnu awk's) could be:

awk 'tolower($0) ~ tolower("^(int|float|double) function1\\([^)]+\\)")' cokedude.input

You'll need to work out the specifics for your REGEX matching the strings.