fwrite(&passe, sizeof(char), 1, script);

Version imprimable