title: problem in using fprintf_s(getting warnings) in c
body: <p>I'm new in c.I just want to complete my project.a list of student with struct.and one of the option is save data in a file.
  I using visual studio 2022 and BTW I can't use syntaxs like scanf or something like that.I have to use scanf_s and etc
  anyway for fprintf_s I don't know how can I use it for my project.I searched in stackoverflow and another sites about it syntax but they were not usefull, but vs gives me a warning. it is:</p>
  <pre><code>sttp could be '0'
  </code></pre>
  <p>the source code is :</p>
  <pre><code>FILE* sttp;
  fopen_s(&amp;sttp, &quot;text.txt&quot;, &quot;w&quot;);
  fprintf_s(sttp, &quot;test&quot;);
  fclose(sttp);
  </code></pre>
  <p>and there are some warnings <a href="https://i.stack.imgur.com/rjKNO.png" rel="nofollow noreferrer">the image of error list</a></p>