| Skip Navigation Links | |
| Exit Print View | |
![]() | man pages section 3: Basic Library Functions Oracle Solaris 11 Information Library |
enable_extended_FILE_stdio(3C)
posix_spawnattr_getschedparam(3C)
posix_spawnattr_getschedpolicy(3C)
posix_spawnattr_getsigdefault(3C)
posix_spawnattr_getsigignore_np(3C)
posix_spawnattr_getsigmask(3C)
posix_spawnattr_setschedparam(3C)
posix_spawnattr_setschedpolicy(3C)
posix_spawnattr_setsigdefault(3C)
posix_spawnattr_setsigignore_np(3C)
posix_spawnattr_setsigmask(3C)
posix_spawn_file_actions_addclose(3C)
posix_spawn_file_actions_addclosefrom_np(3C)
posix_spawn_file_actions_adddup2(3C)
posix_spawn_file_actions_addopen(3C)
posix_spawn_file_actions_destroy(3C)
posix_spawn_file_actions_init(3C)
pthread_attr_getdetachstate(3C)
pthread_attr_getinheritsched(3C)
pthread_attr_getschedparam(3C)
pthread_attr_getschedpolicy(3C)
pthread_attr_setdetachstate(3C)
pthread_attr_setinheritsched(3C)
pthread_attr_setschedparam(3C)
pthread_attr_setschedpolicy(3C)
pthread_barrierattr_destroy(3C)
pthread_barrierattr_getpshared(3C)
pthread_barrierattr_setpshared(3C)
pthread_condattr_getpshared(3C)
pthread_condattr_setpshared(3C)
pthread_cond_reltimedwait_np(3C)
pthread_key_create_once_np(3C)
pthread_mutexattr_getprioceiling(3C)
pthread_mutexattr_getprotocol(3C)
pthread_mutexattr_getpshared(3C)
pthread_mutexattr_getrobust(3C)
pthread_mutexattr_setprioceiling(3C)
pthread_mutexattr_setprotocol(3C)
pthread_mutexattr_setpshared(3C)
pthread_mutexattr_setrobust(3C)
pthread_mutex_getprioceiling(3C)
pthread_mutex_reltimedlock_np(3C)
pthread_mutex_setprioceiling(3C)
pthread_rwlockattr_destroy(3C)
pthread_rwlockattr_getpshared(3C)
pthread_rwlockattr_setpshared(3C)
pthread_rwlock_reltimedrdlock_np(3C)
pthread_rwlock_reltimedwrlock_np(3C)
pthread_rwlock_timedrdlock(3C)
pthread_rwlock_timedwrlock(3C)
rctlblk_get_enforced_value(3C)
- determine conversion object status
#include <wchar.h>intmbsinit(const mbstate_t *ps);
Ifps is not a null pointer, thembsinit() function determines whetherthe object pointed to byps describes an initial conversion state.
Thembsinit() function returns non-zero ifps is a null pointer,or if the pointed-to object describes an initial conversion state; otherwise, itreturns0.
If anmbstate_t object is altered by any of the functions describedas "restartable", and is then used with a different character sequence, orin the other conversion direction, or with a differentLC_CTYPE category settingthan on earlier function calls, the behavior is undefined. Seeenviron(5).
No errors are defined.
Thembstate_t object is used to describe the current conversion state froma particular character sequence to a wide-character sequence (or vice versa) underthe rules of a particular setting of theLC_CTYPE category of thecurrent locale.
The initial conversion state corresponds, for a conversion in either direction, tothe beginning of a new character sequence in the initial shift state. A zero-valuedmbstate_t object is at least one way to describean initial conversion state. A zero-valuedmbstate_t object can be usedto initiate conversion involving any character sequence, in anyLC_CTYPE category setting.
Seeattributes(5) for descriptions of the following attributes:
|
mbrlen(3C),mbrtowc(3C),mbsrtowcs(3C),setlocale(3C),wcrtomb(3C),wcsrtombs(3C),attributes(5),environ(5),standards(5)
Thembsinit() function can be used safely in multithreaded applications, as longassetlocale(3C) is not being called to change the locale.
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.Legal Notices | ![]() ![]() |