Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
multibyte.c
Package: vxwork_src.rar [view]
Upload User: nvosite88
Upload Date: 2007-01-17
Package Size: 4983k
Code Size: 3k
Category:
VxWorks
Development Platform:
C/C++
- /* multibyte.c - multibyte file for stdlib */
- /* Copyright 1992-1993 Wind River Systems, Inc. */
- /*
- modification history
- --------------------
- 01c,08feb93,jdi documentation cleanup for 5.1.
- 01b,20sep92,smb documentation additions.
- 01a,19jul92,smb written and documented.
- */
- /*
- DESCRIPTION
- These ignore the current fixed ("C") locale and
- always indicate that no multibyte characters are supported.
- INCLUDE FILES: stdlib.h
- SEE ALSO: American National Standard X3.159-1989
- NOMANUAL
- */
- #include "vxWorks.h"
- #include "stdlib.h"
- #include "string.h"
- /******************************************************************************
- *
- * mblen - calculate the length of a multibyte character (Unimplemented) (ANSI)
- *
- * This multibyte character function is unimplemented in VxWorks.
- *
- * INCLUDE FILES: stdlib.h
- *
- * RETURNS: OK, or ERROR if the parameters are invalid.
- */
- int mblen
- (
- const char * s,
- size_t n
- )
- {
- if ((strcmp (s,NULL) == 0) && (n == 0) && (*s == EOS))
- return (ERROR);
- return (OK);
- }
- /******************************************************************************
- *
- * mbtowc - convert a multibyte character to a wide character (Unimplemented) (ANSI)
- *
- * This multibyte character function is unimplemented in VxWorks.
- *
- * INCLUDE FILES: stdlib.h
- *
- * RETURNS: OK, or ERROR if the parameters are invalid.
- */
- int mbtowc
- (
- wchar_t * pwc,
- const char * s,
- size_t n
- )
- {
- if ((strcmp (s,NULL) == 0) && (n == 0) && (*s == EOS))
- return (ERROR);
- return (OK);
- }
- /******************************************************************************
- *
- * wctomb - convert a wide character to a multibyte character (Unimplemented) (ANSI)
- *
- * This multibyte character function is unimplemented in VxWorks.
- *
- * INCLUDE FILES: stdlib.h
- *
- * RETURNS: OK, or ERROR if the parameters are invalid.
- */
- int wctomb
- (
- char * s,
- wchar_t wchar
- )
- {
- if (strcmp (s,NULL) == 0)
- return (ERROR);
- return (OK);
- }
- /******************************************************************************
- *
- * mbstowcs - convert a series of multibyte char's to wide char's (Unimplemented) (ANSI)
- *
- * This multibyte character function is unimplemented in VxWorks.
- *
- * INCLUDE FILES: stdlib.h
- *
- * RETURNS: OK, or ERROR if the parameters are invalid.
- */
- size_t mbstowcs
- (
- wchar_t * pwcs,
- const char * s,
- size_t n
- )
- {
- if ((strcmp (s,NULL) == 0) && (n == 0) && (*s == EOS))
- return (ERROR);
- return (OK);
- }
- /******************************************************************************
- *
- * wcstombs - convert a series of wide char's to multibyte char's (Unimplemented) (ANSI)
- *
- * This multibyte character function is unimplemented in VxWorks.
- *
- * INCLUDE FILES: stdlib.h
- *
- * RETURNS: OK, or ERROR if the parameters are invalid.
- */
- size_t wcstombs
- (
- char * s,
- const wchar_t * pwcs,
- size_t n
- )
- {
- if ((strcmp (pwcs,NULL) == 0) && (n == 0) && (*pwcs == (wchar_t) EOS))
- return (ERROR);
- return (OK);
- }