mbsinit.c revision 129153
137Srgrimes/*- 237Srgrimes * Copyright (c) 2002-2004 Tim J. Robbins. 337Srgrimes * All rights reserved. 4705Swollman * 5705Swollman * Redistribution and use in source and binary forms, with or without 6705Swollman * modification, are permitted provided that the following conditions 77685Sache * are met: 87685Sache * 1. Redistributions of source code must retain the above copyright 97685Sache * notice, this list of conditions and the following disclaimer. 107685Sache * 2. Redistributions in binary form must reproduce the above copyright 1137Srgrimes * notice, this list of conditions and the following disclaimer in the 1217771Sasami * documentation and/or other materials provided with the distribution. 13705Swollman * 14705Swollman * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 157685Sache * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 167685Sache * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 177685Sache * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 187685Sache * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 197685Sache * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 207685Sache * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 217685Sache * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 227685Sache * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 237685Sache * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 247685Sache * SUCH DAMAGE. 257685Sache */ 267685Sache 277685Sache#include <sys/cdefs.h> 287685Sache__FBSDID("$FreeBSD: head/lib/libc/locale/mbsinit.c 129153 2004-05-12 14:09:04Z tjr $"); 297685Sache 307685Sache#include <wchar.h> 317685Sache#include "mblocal.h" 327685Sache 337685Sacheint 347685Sachembsinit(const mbstate_t *ps) 357685Sache{ 367685Sache 377685Sache return (__mbsinit(ps)); 387685Sache} 397685Sache