/[mailutils]/mailutils/mh/mh_format.c
ViewVC logotype

Diff of /mailutils/mh/mh_format.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.29 by gray, Wed Feb 12 00:00:08 2003 UTC revision 1.30 by gray, Thu Feb 13 16:36:53 2003 UTC
# Line 559  mh_format (mh_format_t *fmt, message_t m Line 559  mh_format (mh_format_t *fmt, message_t m
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  {  {

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26