title: how to set the environment value manually to integer zero in C
body: <blockquote>
    <p>I have to manually set value of  ENVIRONMENT initially to integer 0.
     Through the below function I will try to retrieve it and set it again to the deisred value.</p>
  </blockquote>
  
  <pre><code>int abcd()
  {
      int temp1=0,temp2;
      temp1++;
      char *env=NULL;
      env=getenv("ENVIRONMENT");
      sscanf(env,"%d",&amp;temp2);
      temp2=temp2+temp1;
      printf("%d",temp2);
      sprintf(temp2,"%d",env);
      setenv("ENVIRONMENT",env,0);
  }
  </code></pre>
  
  <blockquote>
    <p>all the integer variabes are 32 bit unsigned.</p>
  </blockquote>