30 2. smax or n is greater than RSIZE_MAX.
31
32 3. n is greater than smax (buffer overflow).
33
34 If runtime-constraint violation is detected, and if s and smax are valid,
35 the memset_s() function copies the value of c (converted to an unsigned
36 char) into each of the first smax bytes of the memory buffer pointed to
37 by s before calling the runtime-constraint handler.
38
39 RETURN VALUES
40 The memset_s() function returns 0 if there was no runtime-constraint
41 violation. Otherwise, a non-zero value is returned.
42
43 INTERFACE STABILITY
44 Standard
45
46 MT-LEVEL
47 Safe
48
49 SEE ALSO
50 memset(3C), set_constraint_handler(3C)
51
52 STANDARDS
53 The memset_s() function conforms to ISO/IEC 9899:2011 (``ISO C11'').
54
55 illumos August 12, 2017 illumos
|
30 2. smax or n is greater than RSIZE_MAX.
31
32 3. n is greater than smax (buffer overflow).
33
34 If runtime-constraint violation is detected, and if s and smax are valid,
35 the memset_s() function copies the value of c (converted to an unsigned
36 char) into each of the first smax bytes of the memory buffer pointed to
37 by s before calling the runtime-constraint handler.
38
39 RETURN VALUES
40 The memset_s() function returns 0 if there was no runtime-constraint
41 violation. Otherwise, a non-zero value is returned.
42
43 INTERFACE STABILITY
44 Standard
45
46 MT-LEVEL
47 Safe
48
49 SEE ALSO
50 memset(3C), set_constraint_handler_s(3C)
51
52 STANDARDS
53 The memset_s() function conforms to ISO/IEC 9899:2011 (``ISO C11'').
54
55 illumos August 12, 2017 illumos
|