title: Pointer variables changes same time in C?
body: <p>This is a function that returns the current directory:</p>
  
  <pre><code>char* xyz(){
      static TCHAR* Buffer[BUFSIZE];
  
      GetCurrentDirectory(BUFSIZE, Buffer);
     // _tprintf(TEXT(" %s\n"), Buffer);
      return Buffer;
  
  }
  
  
  char *currentvar=xyz();
  char *currentvarmake=xyz();
  </code></pre>
  
  <p>And I assign this function to these 2 variable. But when I change something on <code>currentvar</code> it effects <code>currentvarmake</code> and they both change. I don't want them. I only want to change one of them. I want them to be independent.</p>