/*------------------------------------------------------------------ * test_strcpyfldout_s * * *------------------------------------------------------------------ */ #include "test_private.h" #include "safe_str_lib.h" #define MAX ( 128 ) #define LEN ( 128 ) int test_strcpyfldout_s() { errno_t rc; uint32_t i; rsize_t len; rsize_t slen; char str1[LEN]; char str2[LEN]; /*--------------------------------------------------*/ rc = strcpyfldout_s(NULL, LEN, str2, slen); if (rc != ESNULLP) { debug_printf("%s %u Error rc=%u \n", __FUNCTION__, __LINE__, rc ); } /*--------------------------------------------------*/ len = 5; rc = strcpyfldout_s(str1, len, NULL, len); if (rc != ESNULLP) { debug_printf("%s %u Error rc=%u \n", __FUNCTION__, __LINE__, rc ); } for (i=0; i