c
char* utf8 = ConvertWCharNToUtf8AllocSafe(wchar, *pLength, &utf8_len, SOME_MAX_SAFE_LENGTH);
if (!utf8) {
    // Handle error: conversion failed or length exceeded
    return FALSE;
}
