title: sleep() function not working?
body: <p>I'm using GNU GCC compiler in Code::Blocks on Windows. Why doesn't sleep(seconds) work here? I've tried it using  library and it works fine. Thanks.</p>
  
  <p>Edit: By "doesn't work" I mean, doesn't compile. Sorry.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;unistd.h&gt;
  
  int main(int argc, char *argv[]){
      char * c = (char *) malloc(sizeof(char)*50);
      if(--argc&gt;0){
          printf("POTATO: \n");
          while(argc&gt;=1){
              printf("- %s\n", argv[argc]);
              sleep(10);
              argc--;
          }
          printf("\n");
      }
  
      printf("A\n");
      scanf("%s", c);
      printf("What you wrote: %s\n", c);
      scanf("%s", c);
      return 0;
  }
  </code></pre>