title: c compiler has a function stuck in its namespace (maybe?). mac
body: <p>A week ago I made a function called getline in a code that didn't work. Since then, whenever I name a function getline and try to compile it, it doesn't work. If I change the name of the function to something else, it works again. I have restarted my computer (though it really shouldn't require that). How can I get this namespace back?</p>
  
  <p>example error message:</p>
  
  <pre><code>Numens-MBP:c examples mycotic$ cc testing.c
  testing.c:9:5: error: conflicting types for 'getline'
  int getline(void);
      ^
  /usr/include/stdio.h:448:9: note: previous declaration is here
  ssize_t getline(char ** __restrict __linep, size_t * __restrict __lineca...
          ^
  testing.c:13:1: warning: type specifier missing, defaults to 'int'
        [-Wimplicit-int]
  main()
  ^
  testing.c:20:24: error: too few arguments to function call, expected 3, have 0
          while ((len = getline()) &gt; 0)
                        ~~~~~~~ ^
  /usr/include/stdio.h:448:1: note: 'getline' declared here
  ssize_t getline(char ** __restrict __linep, size_t * __restrict __lineca...
  ^
  testing.c:36:5: error: conflicting types for 'getline'
  int getline(void)
      ^
  /usr/include/stdio.h:448:9: note: previous declaration is here
  ssize_t getline(char ** __restrict __linep, size_t * __restrict __lineca...
          ^
  1 warning and 3 errors generated.
  </code></pre>