title: multiple printf not work error 6
body: <p>I have a problem with output of my c program. </p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;string.h&gt;
  char* valueOfParam (char *param) {
  //some code but in this case result is null
      return NULL;
  }
  
  int main () {
  //....
  char *vm_title = valueOfParam("title"); 
  unsigned int vm_vc; 
  if (valueOfParam("vc"))
  vm_vc = atoi(valueOfParam("vc"));           
  unsigned int vm_dc; 
  if (valueOfParam("dc"))
  vm_dc  = atoi(valueOfParam("dc"));
  unsigned int vm_cl; 
  if (valueOfParam("cl"))
  vm_cl = atoi(valueOfParam("cl"));
  unsigned int vm_pl; 
  if (valueOfParam("pl"))
  vm_pl = atoi(valueOfParam("pl"));
  //.....
  printf("vm_title=%s \n&lt;br&gt;", vm_title);
  printf("vm_vc=%d \n&lt;br&gt;", vm_vc);
  printf("vm_dc=%d \n&lt;br&gt;", vm_dc);
  printf("vm_cl=%d \n&lt;br&gt;", vm_cl);
  //.....
  }
  </code></pre>
  
  <p>When I try print <code>1</code> or <code>2</code> value all is good, if I print <code>2</code> or more string value I have crash and</p>
  
  <pre><code>segfault, error 6 in /var/log/messages.
  </code></pre>
  
  <p>What am I doing wrong?</p>
  
  <p>P.S. Problem was in not this code fragment, sorry.</p>
  
  <pre><code>unsigned int vm_users;                              
  if (valueOfParam("users")){
      printf("==%s", vm_users);
      //vm_users  = atoi(valueOfParam("users"));
  }
  </code></pre>
  
  <p>In particular, in line (crash if uncomment)</p>
  
  <pre><code>vm_users  = atoi(valueOfParam("users"));
  </code></pre>