title: Returning char* in function
body: <p>I have function:</p>
  
  <pre><code>char *zap(char *ar) {
  
      char pie[100] = "INSERT INTO test (nazwa, liczba) VALUES ('nowy wpis', '";
      char dru[] = "' )";
      strcat(pie, ar);
      strcat(pie, dru);
      return pie;
  }
  </code></pre>
  
  <p>and in main there is:</p>
  
  <pre><code>printf("%s", zap( argv[1] )  );
  </code></pre>
  
  <p>When compiling I get the warning:</p>
  
  <pre><code>test.c: In function ‘zap’:
  test.c:17: warning: function returns address of local variable
  </code></pre>
  
  <p>How should I return char* propertly?</p>