2016-10-19 02:15:54 +02:00
|
|
|
/****************************************************************************
|
2018-05-29 21:21:26 +02:00
|
|
|
* libs/libc/locale/lib_localeconv.c
|
2016-10-19 02:15:54 +02:00
|
|
|
*
|
2021-03-02 15:54:21 +01:00
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed with
|
|
|
|
* this work for additional information regarding copyright ownership. The
|
|
|
|
* ASF licenses this file to you under the Apache License, Version 2.0 (the
|
|
|
|
* "License"); you may not use this file except in compliance with the
|
|
|
|
* License. You may obtain a copy of the License at
|
2016-10-19 02:15:54 +02:00
|
|
|
*
|
2021-03-02 15:54:21 +01:00
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
2016-10-19 02:15:54 +02:00
|
|
|
*
|
2021-03-02 15:54:21 +01:00
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
* License for the specific language governing permissions and limitations
|
|
|
|
* under the License.
|
2016-10-19 02:15:54 +02:00
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
* Included Files
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
#include <nuttx/config.h>
|
|
|
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <locale.h>
|
|
|
|
|
|
|
|
#ifdef CONFIG_LIBC_LOCALE
|
|
|
|
|
2019-11-18 18:41:32 +01:00
|
|
|
/****************************************************************************
|
|
|
|
* Private Data
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
static struct lconv g_c_lconv =
|
|
|
|
{
|
2022-03-26 21:51:22 +01:00
|
|
|
".", "", "", "", "", "", "", "", "", "", CHAR_MAX, CHAR_MAX,
|
|
|
|
CHAR_MAX, CHAR_MAX, CHAR_MAX, CHAR_MAX, CHAR_MAX, CHAR_MAX,
|
|
|
|
CHAR_MAX, CHAR_MAX, CHAR_MAX, CHAR_MAX, CHAR_MAX, CHAR_MAX
|
2019-11-18 18:41:32 +01:00
|
|
|
};
|
|
|
|
|
2016-10-19 02:15:54 +02:00
|
|
|
/****************************************************************************
|
|
|
|
* Public Functions
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
* Name: localeconv
|
|
|
|
*
|
|
|
|
* Description:
|
|
|
|
* locales are not supported by NuttX
|
|
|
|
*
|
|
|
|
* Input Parameters:
|
|
|
|
* category and locale - Select the appropriate piece of the program's
|
|
|
|
* locale.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
2016-10-19 03:11:09 +02:00
|
|
|
FAR struct lconv *localeconv(void)
|
2016-10-19 02:15:54 +02:00
|
|
|
{
|
2019-11-18 18:41:32 +01:00
|
|
|
return &g_c_lconv;
|
2016-10-19 02:15:54 +02:00
|
|
|
}
|
|
|
|
#endif
|