|
|||||||
|
|
CTERMIDSection: Manuel du programmeur Linux (3)Updated: 21 juillet 2003 Index Return to Main Contents NOMctermid - Obtenir le nom du terminal de contrôle.SYNOPSIS#include <stdio.h> char *ctermid (char *s); DESCRIPTIONLa fonction ctermid() renvoie une chaine de caractères correspondant au chemin d'accès au fichier spécial du terminal contrôlant le processus en cours. Si s vaut NULL, un buffer statique est utilisé pour renvoyer la chaîne, sinon s doit pointer sur le buffer à remplir avec le nom du terminal. La constante symbolique L_ctermid représente le nombre maximum de caratères dans le nom renvoyé.VALEUR RENVOYÉEUn pointeur sur le nom du terminal.CONFORMITÉSVID, POSIX.1BOGUESLe chemin renvoyé n'identifie pas obligatoirement le terminal de contrôle de manière unique. Ce peut être par exemple : /dev/tty.Il n'est pas garantit que le programme puisse ouvrir le terminal. VOIR AUSSIttyname(3)TRADUCTIONChristophe Blaess, 1996-2003.
Index | ||||||
|
|
|
Home :: Copyright :: Privacy :: Credits :: Get a free Linuxinfor Email Account Document on this page is part of "Linuxinfor Man Pages in HTML Format: man3". See Index Page for more info about Authorship and Copyright. 1999-2010 Linuxinfor.com. No rights reserved. |