NWPrevChar
Finds the beginning of the nearest previous character in a string with multibyte characters
#include <time.h> or #define NWL_EXCLUDE_TIME
#include <stdio.h> or #define NWL_EXCLUDE_FILE
#include <nwlocale.h>
pnstr N_API NWPrevChar (
const nstr N_FAR *string,
pnstr position);
uses netwin32
Function NWPrevChar
(const str : pnstr;
position : pnstr
) : pnstr;
In a multibyte string, it is not obvious whether the current byte is a single-byte character or the second character of a double-byte character. NWPrevChar resolves this ambiguity.