title: I need a example for strcat_s()
body: <p>Can you please give me an example for c++. which works on Visual studio 2019.</p>
  
  <p>I tried this </p>
  
  <pre><code>  char test_name[50];
      char SQLQueryViewMARKS_12A[] = "SELECT *FROM Marks_12A WHERE Test_Name = ";
      cin&gt;&gt;test_name;
      strcat_s(SQLQueryViewMARKS_12A,sizeof(SQLQueryViewMARKS_12A),"'/0 ");
      strcat_s(SQLQueryViewMARKS_12A,sizeof(SQLQueryViewMARKS_12A),test_name);
      strcat_s(SQLQueryViewMARKS_12A,sizeof(SQLQueryViewMARKS_12A), "'/0");
  </code></pre>
  
  <p>The expected result was :</p>
  
  <p>If user entered UT</p>
  
  <p>The query must get concatenate to </p>
  
  <pre><code>char SQLQueryViewMARKS_12A[] = "SELECT *FROM Marks_12A WHERE Test_Name = ' UT ' ";
  </code></pre>