Lines Matching refs:space_left
29 size_t space_left;
31 space_left = sizeof(target);
32 space_left = strpcpy(&s, space_left, "12345");
33 space_left = strpcpy(&s, space_left, "hey hey hey");
34 space_left = strpcpy(&s, space_left, "waldo");
35 space_left = strpcpy(&s, space_left, "ba");
36 space_left = strpcpy(&s, space_left, "r");
37 space_left = strpcpy(&s, space_left, "foo");
40 assert_se(space_left == 0);
46 size_t space_left;
48 space_left = sizeof(target);
49 space_left = strpcpyf(&s, space_left, "space left: %zu. ", space_left);
50 space_left = strpcpyf(&s, space_left, "foo%s", "bar");
53 assert_se(space_left == 3);
59 size_t space_left;
61 space_left = sizeof(target);
62 space_left = strpcpyl(&s, space_left, "waldo", " test", " waldo. ", NULL);
63 space_left = strpcpyl(&s, space_left, "Banana", NULL);
66 assert_se(space_left == 1);
71 size_t space_left;
73 space_left = sizeof(target);
74 space_left = strscpy(target, space_left, "12345");
77 assert_se(space_left == 20);
82 size_t space_left;
84 space_left = sizeof(target);
85 space_left = strscpyl(target, space_left, "12345", "waldo", "waldo", NULL);
88 assert_se(space_left == 10);