Does MLGetUTF8String() return a null-terminated string?
- To: mathgroup at smc.vnet.net
- Subject: [mg129844] Does MLGetUTF8String() return a null-terminated string?
- From: Szabolcs Horvát <szhorvat at gmail.com>
- Date: Mon, 18 Feb 2013 06:02:03 -0500 (EST)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- Delivered-to: l-mathgroup@wolfram.com
- Delivered-to: mathgroup-newout@smc.vnet.net
- Delivered-to: mathgroup-newsend@smc.vnet.net
Does the C MathLink function MLGetUTF8String() return a null-terminated string? The documentation does not say that it does and it returns the length of the string as well. But if it did, it would spare me some copying, as my target requires a null-terminated UTF-8 string.
- Follow-Ups:
- Re: Does MLGetUTF8String() return a null-terminated string?
- From: Patrick Scheibe <pscheibe@trm.uni-leipzig.de>
- Re: Does MLGetUTF8String() return a null-terminated string?