Skip to content
Snippets Groups Projects
  • Simon Tatham's avatar
    7762d712
    New centralised helper function dup_mb_to_wc(). · 7762d712
    Simon Tatham authored
    PuTTY's main mb_to_wc() function is all very well for embedding in
    fiddly data pipelines, but for the simple job of turning a C string
    into a C wide string, really I want something much more like
    dupprintf. So here is one.
    
    I've had to put it in a new separate source file miscucs.c rather than
    throwing it into misc.c, because misc.c is linked into tools that
    don't also include a module providing the internal Unicode API (winucs
    or uxucs). The new miscucs.c appears only in Unicode-using tools.
    7762d712
    History
    New centralised helper function dup_mb_to_wc().
    Simon Tatham authored
    PuTTY's main mb_to_wc() function is all very well for embedding in
    fiddly data pipelines, but for the simple job of turning a C string
    into a C wide string, really I want something much more like
    dupprintf. So here is one.
    
    I've had to put it in a new separate source file miscucs.c rather than
    throwing it into misc.c, because misc.c is linked into tools that
    don't also include a module providing the internal Unicode API (winucs
    or uxucs). The new miscucs.c appears only in Unicode-using tools.