Versions Compared

Key

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

...

Code Block
bgColor#ccccff
langc
struct string_mx;
typedef struct string_mx string_mx;

/* Function declarations */
extern errno_t strcpy_m(string_mx *s1, const string_mx *s2);
extern errno_t strcat_m(string_mx *s1, const string_mx *s2) ;
/* etc. */

In the internal header file, struct string_mx is fully defined but not visible to a user of the data abstraction.

...

Search for vulnerabilities resulting from the violation of this rule on the CERT website.

Bibliography

 

[ISO/IEC 9899:2011]Section 6.2.5, "Types"
[Burch 2006]