280 CxPropertiesSource *src, |
280 CxPropertiesSource *src, |
281 cxstring *target |
281 cxstring *target |
282 ) { |
282 ) { |
283 target->ptr = src->data_ptr; |
283 target->ptr = src->data_ptr; |
284 target->length = fread(src->data_ptr, 1, src->data_size, src->src); |
284 target->length = fread(src->data_ptr, 1, src->data_size, src->src); |
285 return ferror(src->src); |
285 return ferror((FILE*)src->src); |
286 } |
286 } |
287 |
287 |
288 static int cx_properties_read_init_file( |
288 static int cx_properties_read_init_file( |
289 cx_attr_unused CxProperties *prop, |
289 cx_attr_unused CxProperties *prop, |
290 CxPropertiesSource *src |
290 CxPropertiesSource *src |