13cfb52aab2548df635e9672218cc433e14922fd3Elliott Hughes/*
23cfb52aab2548df635e9672218cc433e14922fd3Elliott Hughes * Copyright (C) 2015 The Android Open Source Project
33cfb52aab2548df635e9672218cc433e14922fd3Elliott Hughes * All rights reserved.
43cfb52aab2548df635e9672218cc433e14922fd3Elliott Hughes *
53cfb52aab2548df635e9672218cc433e14922fd3Elliott Hughes * Redistribution and use in source and binary forms, with or without
63cfb52aab2548df635e9672218cc433e14922fd3Elliott Hughes * modification, are permitted provided that the following conditions
73cfb52aab2548df635e9672218cc433e14922fd3Elliott Hughes * are met:
83cfb52aab2548df635e9672218cc433e14922fd3Elliott Hughes *  * Redistributions of source code must retain the above copyright
93cfb52aab2548df635e9672218cc433e14922fd3Elliott Hughes *    notice, this list of conditions and the following disclaimer.
103cfb52aab2548df635e9672218cc433e14922fd3Elliott Hughes *  * Redistributions in binary form must reproduce the above copyright
113cfb52aab2548df635e9672218cc433e14922fd3Elliott Hughes *    notice, this list of conditions and the following disclaimer in
123cfb52aab2548df635e9672218cc433e14922fd3Elliott Hughes *    the documentation and/or other materials provided with the
133cfb52aab2548df635e9672218cc433e14922fd3Elliott Hughes *    distribution.
143cfb52aab2548df635e9672218cc433e14922fd3Elliott Hughes *
153cfb52aab2548df635e9672218cc433e14922fd3Elliott Hughes * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
163cfb52aab2548df635e9672218cc433e14922fd3Elliott Hughes * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
173cfb52aab2548df635e9672218cc433e14922fd3Elliott Hughes * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
183cfb52aab2548df635e9672218cc433e14922fd3Elliott Hughes * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
193cfb52aab2548df635e9672218cc433e14922fd3Elliott Hughes * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
203cfb52aab2548df635e9672218cc433e14922fd3Elliott Hughes * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
213cfb52aab2548df635e9672218cc433e14922fd3Elliott Hughes * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
223cfb52aab2548df635e9672218cc433e14922fd3Elliott Hughes * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
233cfb52aab2548df635e9672218cc433e14922fd3Elliott Hughes * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
243cfb52aab2548df635e9672218cc433e14922fd3Elliott Hughes * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
253cfb52aab2548df635e9672218cc433e14922fd3Elliott Hughes * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
263cfb52aab2548df635e9672218cc433e14922fd3Elliott Hughes * SUCH DAMAGE.
273cfb52aab2548df635e9672218cc433e14922fd3Elliott Hughes */
283cfb52aab2548df635e9672218cc433e14922fd3Elliott Hughes
293cfb52aab2548df635e9672218cc433e14922fd3Elliott Hughes#include <wchar.h>
303cfb52aab2548df635e9672218cc433e14922fd3Elliott Hughes
313cfb52aab2548df635e9672218cc433e14922fd3Elliott Hugheswchar_t* wmempcpy(wchar_t* dst, const wchar_t* src, size_t n) {
323cfb52aab2548df635e9672218cc433e14922fd3Elliott Hughes  return wmemcpy(dst, src, n) + n;
333cfb52aab2548df635e9672218cc433e14922fd3Elliott Hughes}
34