Lines Matching refs:length
102 to->length = from->length;
103 to->data = malloc(to->length + 1);
106 memcpy(to->data, from->data, to->length);
107 ((char *)to->data)[to->length] = '\0';
121 to->length = from->length;
122 to->data = malloc(to->length * sizeof(to->data[0]));
123 if(to->length != 0 && to->data == NULL)
125 memcpy(to->data, from->data, to->length * sizeof(to->data[0]));
133 to->length = from->length;
134 to->data = malloc(to->length * sizeof(to->data[0]));
135 if(to->length != 0 && to->data == NULL)
137 memcpy(to->data, from->data, to->length * sizeof(to->data[0]));
151 to->length = from->length;
156 to->data = malloc(to->length);
157 if (to->length != 0 && to->data == NULL)
159 memcpy(to->data, from->data, to->length);
166 to->length = from->length;
167 to->data = malloc(to->length);
168 if(to->length != 0 && to->data == NULL)
170 memcpy(to->data, from->data, to->length);
178 to->length = from->length;
179 to->components = malloc(to->length * sizeof(*to->components));
180 if (to->length != 0 && to->components == NULL)
183 to->length * sizeof(*to->components));
192 len = (from->length + 7) / 8;
193 to->length = from->length;