schnapsmann Zaford Beeblefect | samuelp a écrit :
Pour quoi 1 au debut ? C'est un File Descriptor pour les fichier !
Si tu fais un fd = fopen("monfichier","w+" );
tu fais un write(fd, var1,1) ça devrait aller
|
n'importe quoi , mélanger les FILE* retournés par fopen pour les utiliser avec write...
Pour ce qui est du 1: un process posix ouvre 3 toujours trois fichiers: entrée standard, sortie standard, sortie erreur; dans l'ordre ca donne 0(std in),1(std out) et 2(std err). ---------------
From now on, you will speak only when spoken to, and the first and last words out of your filthy sewers will be "Sir!"
|