From 2c2cc2260f9302ed2a32d5cd6116d7e7a2f097cf Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sun, 23 May 2004 13:20:27 +0000 Subject: Character-set-isation and configurability in the WinHelp backend. Newly configurable things are: bullet and quote characters as usual, the ": " that goes between a section number and its title, the "." coming after numbered-list item numbers, and the text "Title page" that appears at the top of the .cnt file. [originally from svn r4248] --- ustring.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ustring.c') diff --git a/ustring.c b/ustring.c index 0e3bfee..aa27dd4 100644 --- a/ustring.c +++ b/ustring.c @@ -246,6 +246,15 @@ wchar_t *ustrcpy(wchar_t *dest, wchar_t const *source) { return ret; } +wchar_t *ustrncpy(wchar_t *dest, wchar_t const *source, int n) { + wchar_t *ret = dest; + do { + *dest++ = *source; + if (*source) source++; + } while (n-- > 0); + return ret; +} + int ustrcmp(wchar_t *lhs, wchar_t *rhs) { if (!lhs && !rhs) return 0; if (!lhs) return -1; -- cgit v1.1