| 380 * |
380 * |
| 381 * @param prop the properties interface |
381 * @param prop the properties interface |
| 382 * @param buf a pointer to the data |
382 * @param buf a pointer to the data |
| 383 * @param len the length of the data |
383 * @param len the length of the data |
| 384 * @return non-zero when a memory allocation was necessary but failed |
384 * @return non-zero when a memory allocation was necessary but failed |
| |
385 * @see cxPropertiesFill() |
| 385 */ |
386 */ |
| 386 cx_attr_nonnull |
387 cx_attr_nonnull |
| 387 cx_attr_access_r(2, 3) |
388 cx_attr_access_r(2, 3) |
| 388 int cxPropertiesFilln( |
389 int cxPropertiesFilln( |
| 389 CxProperties *prop, |
390 CxProperties *prop, |
| 435 * an allocation of a new buffer and copying the previous contents. |
436 * an allocation of a new buffer and copying the previous contents. |
| 436 * |
437 * |
| 437 * @param prop the properties interface |
438 * @param prop the properties interface |
| 438 * @param str the text to fill in |
439 * @param str the text to fill in |
| 439 * @return non-zero when a memory allocation was necessary but failed |
440 * @return non-zero when a memory allocation was necessary but failed |
| |
441 * @see cxPropertiesFilln() |
| 440 */ |
442 */ |
| 441 #define cxPropertiesFill(prop, str) _Generic((str), \ |
443 #define cxPropertiesFill(prop, str) _Generic((str), \ |
| 442 cxstring: cx_properties_fill_cxstr, \ |
444 cxstring: cx_properties_fill_cxstr, \ |
| 443 cxmutstr: cx_properties_fill_mutstr, \ |
445 cxmutstr: cx_properties_fill_mutstr, \ |
| 444 char*: cx_properties_fill_str, \ |
446 char*: cx_properties_fill_str, \ |