Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
bgColor#ccccff
char errorsystem_msg[100];
/* ... */
void error_message(char *error_msg) {
  char default_msg[80];
  /* ... */

  /* error_msg is assumed to reference a NTBS of length 99 or less */  
  errno_t e = strcpy_s(errorsystem_msg, 100, "Error"error_msg);
  if (e != 0) {
     /* handle strcpy_s() error */
  }
}

...