title: Does not work _cgets. Identifier not found
body: <p>I am trying to compile the following code in visual studio 2019:</p>
  <pre><code>#include &lt;iostream&gt;
  #include &lt;stdio.h&gt;
  #include &lt;math.h&gt;
  #include &lt;conio.h&gt;
  #include &lt;string&gt;
  int main() 
  {
       char buffer[5];
      char* p;
      buffer[0] = 3;
      p = _cgets(buffer); // problem with _cgets
      printf(&quot;\ncgets read %d symbols: \&quot;%s\&quot;\n&quot;, buffer[1], p);
      printf(&quot;A pointer is returned %p, buffer[2] on %p\n&quot;, p, &amp;buffer);
  
  return 0;
  }
  </code></pre>
  <p>But I see the following error:</p>
  <pre class="lang-none prettyprint-override"><code>main.cpp(11,9): error C3861: '_cgets': identifier not found
  </code></pre>