Bash-Linux.com : Le SHELL pour les nuls

  Actuellement 50 lignes de commande et 1472 man disponibles
login as: root
root@213.186.33.18's password:
Last login: Tue May 29 18:38:51 2012 from 38.107.179.228
[root@bash-linux ~] # echo "Bienvenue sur Bash-Linux.com"_
 Manuel des commandes UNIX (man) Version anglaise

Indiquez la fonction :

Man Mbtowc en anglais

MBTOWC(3) Linux Programmer's Manual MBTOWC(3)
 
NAME


mbtowc - convert a multibyte sequence to a wide character
 
SYNOPSIS


#include int mbtowc(wchar_t *pwc, const char *s, size_t n);
 
DESCRIPTION


The main case for this function is when s is not NULL and pwc is not NULL. In this case, the mbtowc() function inspects at most n bytes of the multibyte string starting at s, extracts the next complete multi- byte character, converts it to a wide character and stores it at *pwc. It updates an internal shift state only known to the mbtowc function. If s does not point to a '\0' byte, it returns the number of bytes that were consumed from s, otherwise it returns 0. If the n bytes starting at s do not contain a complete multibyte char- acter, or if they contain an invalid multibyte sequence, mbtowc() returns -1. This can happen even if n >= MB_CUR_MAX, if the multibyte string contains redundant shift sequences. A different case is when s is not NULL but pwc is NULL. In this case the mbtowc() function behaves as above, except that it does not store the converted wide character in memory. A third case is when s is NULL. In this case, pwc and n are ignored. The mbtowc() function resets the shift state, only known to this func- tion, to the initial state, and returns non-zero if the encoding has nontrivial shift state, or zero if the encoding is stateless.
 
RETURN VALUE


If s is not NULL, the mbtowc() function returns the number of consumed bytes starting at s, or 0 if s points to a null byte, or -1 upon fail- ure. If s is NULL, the mbtowc() function returns non-zero if the encoding has nontrivial shift state, or zero if the encoding is stateless.
 
CONFORMING TO


C99.
 
NOTES


The behavior of mbtowc() depends on the LC_CTYPE category of the cur- rent locale. This function is not multi-thread safe. The function mbrtowc(3) pro- vides a better interface to the same functionality.
 
SEE ALSO


MB_CUR_MAX(3), mbrtowc(3), mbstowcs(3)
 
COLOPHON


This page is part of release 3.05 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/. GNU 2001-07-04 MBTOWC(3)


 Dernières recherches
Man  en anglais Man mbtowc en anglaisMan  en français Man mbtowc en français
Man  en anglais Man mbstowcs en anglaisMan  en français Man mbstowcs en français
Man  en anglais Man mbsrtowcs en anglaisMan  en français Man mbsrtowcs en français
Man  en anglais Man mbsnrtowcs en anglaisMan  en français Man mbsnrtowcs en français
Man  en anglais Man mbrtowc en anglaisMan  en français Man mbrtowc en français
Man  en anglais Man truncate en anglaisMan  en français Man truncate en français
Man  en anglais Man mawk en anglaisMan  en français Man mawk en français
Man  en anglais Man manconv en anglaisMan  en français Man manconv en français
Man  en anglais Man makecontext en anglaisMan  en français Man makecontext en français
Man  en anglais Man mailx en anglaisMan  en français Man mailx en français
Man  en anglais Man mailq en anglaisMan  en français Man mailq en français
Man  en anglais Man mailcap en anglaisMan  en français Man mailcap en français
Man  en anglais Man mailaddr en anglaisMan  en français Man mailaddr en français
Man  en anglais Man nanosleep en anglaisMan  en français Man nanosleep en français
Man  en anglais Man mail en anglaisMan  en français Man mail en français

 Recherche

Dans ce moteur de recherche, vous pouvez taper directement votre besoin, en une phrase normale, humaine.
Exemple : vous cherchez comment remplacer un mot par un autre dans tous les fichiers d'un certain dossier. Vous pouvez écrire "Comment remplacer un mot par un autre dans tous les fichiers d'un dossier". Le moteur vous ramenera les résultats en fonction de leur pertinence.
Vous pouvez bien sûr ne chercher qu'un seul mot-clé, par exemple "find".
 Toutes les lignes de code
Par popularité
Par fonction
Recherche avancée
 Les logiciels SHELL/SSH
Putty
Astuces Bash
Faire du SHELL avec PHP!
 La doc officielle
Les man Linux en français
Les man Linux en anglais
 Proposer vos bash
Partagez vos lignes!
 Les requêtes
Déposer une requête
Voir/répondre à une requête
 Quelques sites interessants
Bons sites pour apprendre
 Rechercher