Lines Matching refs:size
23 * Returns the * remaining size, and 0 if the string was truncated.
32 size_t strpcpy(char **dest, size_t size, const char *src) {
36 if (len >= size) {
37 if (size > 1)
38 *dest = mempcpy(*dest, src, size-1);
39 size = 0;
43 size -= len;
47 return size;
50 size_t strpcpyf(char **dest, size_t size, const char *src, ...) {
55 i = vsnprintf(*dest, size, src, va);
56 if (i < (int)size) {
58 size -= i;
60 *dest += size;
61 size = 0;
65 return size;
68 size_t strpcpyl(char **dest, size_t size, const char *src, ...) {
73 size = strpcpy(dest, size, src);
77 return size;
80 size_t strscpy(char *dest, size_t size, const char *src) {
84 return strpcpy(&s, size, src);
87 size_t strscpyl(char *dest, size_t size, const char *src, ...) {
94 size = strpcpy(&s, size, src);
99 return size;