559 |
return mach.ind; |
return mach.ind; |
560 |
} |
} |
561 |
|
|
562 |
|
int |
563 |
|
mh_format_str (mh_format_t *fmt, char *str, size_t width, char **pret) |
564 |
|
{ |
565 |
|
message_t msg = NULL; |
566 |
|
header_t hdr = NULL; |
567 |
|
int rc; |
568 |
|
|
569 |
|
if (message_create (&msg, NULL)) |
570 |
|
return -1; |
571 |
|
message_get_header (msg, &hdr); |
572 |
|
header_set_value (hdr, "text", str, 1); |
573 |
|
rc = mh_format (fmt, msg, 1, width, pret); |
574 |
|
message_destroy (&msg, NULL); |
575 |
|
return rc; |
576 |
|
} |
577 |
|
|
578 |
|
|
579 |
void |
void |
580 |
mh_format_dump (mh_format_t *fmt) |
mh_format_dump (mh_format_t *fmt) |
581 |
{ |
{ |