title: C error, " 'expected '=' ',' ';' , 'asm' or '__attribute__' before 'Bufferpar' "
body: <p>Small coding project using the Code::Blocks IDE, worked on buffer parsing functionality, when compiling I got a strange error (as seen above). I did some research online, generally it's because Code::Blocks is trying to compile C code when it's C++, this is not the case. This is C.</p>
  
  <p>Exact message reads, again, as follows</p>
  
  <pre><code>Line 3 : error: expected '=', ',', 'ASM', or '__attribute__' before 'BufferPar'
  </code></pre>
  
  <p>Everything else seemed to compile fine except this little piece of code. I'm clueless, any ideas? I'm afraid I may be overlooking some minor detail....</p>
  
  <pre><code>#include &lt;string.h&gt;
  
  PCHAR BufferPar(PCHAR pPagebuffer, PCHAR pInitchar, PCHAR pFinalchar)
  {
      PCHAR vPointer, pNchar, *phLocate;
      CHAR String[1024];
  
      if(pPagebuffer == NULL) return NULL;
  
      if((vPointer=strstr(pPagebuffer, pInitchar) == NULL){
         return vPointer;}
         else vPointer += strlen(pInitchar);
  
      *phLocate = vPointer;
  
      if((pNchar=strstr(vPointer, pFinalchar) == NULL)){
      return pNchar;}
      else pNchar[0]='\0';
  
      strcpy(String, vPointer);
  
      pNchar=[0]=pFinalchar=[0];
  
      return String;
  
  }
  </code></pre>