Lines Matching refs:length
104 size_t length; in main() local
112 length = strnlen_s("Hello, world!", 50); in main()
114 TEST_RES(length == 13, "Normal length", handler_res, test_id); in main()
118 length = strnlen_s("Hello, world!", 13); in main()
120 TEST_RES(length == 13, "Length with exact buffer size", handler_res, in main()
125 length = strnlen_s("Hello, world!", 5); in main()
127 TEST_RES(length == 5, "Length with insufficient buffer", handler_res, in main()
132 length = strnlen_s("", 50); in main()
134 TEST_RES(length == 0, "Length of empty string", handler_res, test_id); in main()
138 length = strnlen_s(NULL, 50); in main()
140 TEST_RES(length == 0, "Length with Null string", handler_res, test_id); in main()
144 length = strnlen_s("Hello, world!", 0); in main()
146 TEST_RES(length == 0, "Length with zero buffer size", handler_res, test_id); in main()