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: Sun Feb 12 8:20:54 2012 from 38.107.179.229
[root@bash-linux ~] # echo "Bienvenue sur Bash-Linux.com"_
 Manuel des commandes UNIX (man) Version anglaise

Indiquez la fonction :

Man Wcrtomb en anglais

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


wcrtomb - convert a wide character to a multibyte sequence
 
SYNOPSIS


#include size_t wcrtomb(char *s, wchar_t wc, mbstate_t *ps);
 
DESCRIPTION


The main case for this function is when s is not NULL and wc is not L'\0'. In this case, the wcrtomb() function converts the wide charac- ter wc to its multibyte representation and stores it at the beginning of the character array pointed to by s. It updates the shift state *ps, and returns the length of said multibyte representation, that is, the number of bytes written at s. A different case is when s is not NULL but wc is L'\0'. In this case the wcrtomb() function stores at the character array pointed to by s the shift sequence needed to bring *ps back to the initial state, fol- lowed by a '\0' byte. It updates the shift state *ps (i.e., brings it into the initial state), and returns the length of the shift sequence plus one, that is, the number of bytes written at s. A third case is when s is NULL. In this case wc is ignored, and the function effectively returns wcrtomb(buf,L'\0',ps) where buf is an internal anonymous buffer. In all of the above cases, if ps is a NULL pointer, a static anonymous state only known to the wcrtomb() function is used instead.
 
RETURN VALUE


The wcrtomb() function returns the number of bytes that have been or would have been written to the byte array at s. If wc can not be rep- resented as a multibyte sequence (according to the current locale), (size_t) -1 is returned, and errno set to EILSEQ.
 
CONFORMING TO


C99.
 
NOTES


The behavior of wcrtomb() depends on the LC_CTYPE category of the cur- rent locale. Passing NULL as ps is not multi-thread safe.
 
SEE ALSO


wcsrtombs(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 1999-07-25 WCRTOMB(3)


 Dernières recherches
Man  en anglais Man wcrtomb en anglaisMan  en français Man wcrtomb en français
Man  en anglais Man netlink en anglaisMan  en français Man netlink en français
Man  en anglais Man openlog en anglaisMan  en français Man openlog en français
Man  en anglais Man wordexp en anglaisMan  en français Man wordexp en français
Man  en anglais Man getline en anglaisMan  en français Man getline en français
Man  en anglais Man seekdir en anglaisMan  en français Man seekdir en français
Man  en anglais Man readelf en anglaisMan  en français Man readelf en français
Man  en anglais Man sigwait en anglaisMan  en français Man sigwait en français
Man  en anglais Man complex en anglaisMan  en français Man complex en français
Man  en anglais Man vhangup en anglaisMan  en français Man vhangup en français
Man  en anglais Man objdump en anglaisMan  en français Man objdump en français
Man  en anglais Man opendir en anglaisMan  en français Man opendir en français
Man  en anglais Man strpbrk en anglaisMan  en français Man strpbrk en français
Man  en anglais Man getdate en anglaisMan  en français Man getdate en français
Man  en anglais Man fgetpos en anglaisMan  en français Man fgetpos 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