-
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.
Simon Tatham authoredPuTTY'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.