From 59bc781854d623235149eb329fd5c3b89e10501a Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Sun, 4 Nov 2001 21:10:17 +0000 Subject: Added missing strchr_wa. Jeremy. (This used to be commit 16c5d279b97250ceb84ee6de6e5e801350c816c4) --- source3/lib/util_unistr.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source3/lib/util_unistr.c') diff --git a/source3/lib/util_unistr.c b/source3/lib/util_unistr.c index 287472ad65..8a7253a718 100644 --- a/source3/lib/util_unistr.c +++ b/source3/lib/util_unistr.c @@ -242,6 +242,11 @@ smb_ucs2_t *strchr_w(const smb_ucs2_t *s, smb_ucs2_t c) return NULL; } +smb_ucs2_t *strchr_wa(const smb_ucs2_t *s, char c) +{ + return strchr_w(s, UCS2_CHAR(c)); +} + smb_ucs2_t *strrchr_w(const smb_ucs2_t *s, smb_ucs2_t c) { const smb_ucs2_t *p = s; -- cgit