Lines Matching defs:s3
31 char *s1, *s2, *s3;
39 s3 = sm_malloc_x(MAXL);
41 SM_TEST(sm_strlcpy(s3, s1, 4) == 3);
42 SM_TEST(strcmp(s1, s3) == 0);
44 SM_TEST(sm_strlcat(s3, s2, 8) == 6);
46 SM_TEST(strcmp(s3, r) == 0);
48 SM_TEST(sm_strlcpy(s3, s1, 2) == 3);
50 SM_TEST(strcmp(s3, r) == 0);
52 SM_TEST(sm_strlcat(s3, s2, 3) == 4);
54 SM_TEST(strcmp(s3, r) == 0);
56 SM_TEST(sm_strlcpy(s3, s1, 4) == 3);
58 SM_TEST(sm_strlcat2(s3, r, s2, MAXL) == 7);
60 SM_TEST(strcmp(s3, r) == 0);
62 SM_TEST(sm_strlcpy(s3, s1, 4) == 3);
64 SM_TEST(sm_strlcat2(s3, r, s2, 6) == 7);
66 SM_TEST(strcmp(s3, r) == 0);
68 SM_TEST(sm_strlcpy(s3, s1, 4) == 3);
70 SM_TEST(sm_strlcat2(s3, r, s2, 2) == 7);
72 SM_TEST(strcmp(s3, r) == 0);
74 SM_TEST(sm_strlcpy(s3, s1, 4) == 3);
76 SM_TEST(sm_strlcat2(s3, r, s2, 4) == 7);
78 SM_TEST(strcmp(s3, r) == 0);
80 SM_TEST(sm_strlcpy(s3, s1, 4) == 3);
82 SM_TEST(sm_strlcat2(s3, r, s2, 5) == 7);
84 SM_TEST(strcmp(s3, r) == 0);
86 SM_TEST(sm_strlcpy(s3, s1, 4) == 3);
88 SM_TEST(sm_strlcat2(s3, r, s2, 6) == 7);
90 SM_TEST(strcmp(s3, r) == 0);