From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 28C9C7FDE3 for ; Sun, 12 Jun 2016 14:29:04 +0200 (CEST) X-IronPort-AV: E=Sophos;i="5.26,462,1459807200"; d="scan'208";a="222108268" Received: from amontsouris-551-1-55-222.w90-24.abo.wanadoo.fr (HELO pl-59055.rocqadm.inria.fr) ([90.24.174.222]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/AES256-GCM-SHA384; 12 Jun 2016 14:29:03 +0200 Received: from shindere by pl-59055.rocqadm.inria.fr with local (Exim 4.87) (envelope-from ) id 1bC4Vj-0002fq-LH for caml-list@inria.fr; Sun, 12 Jun 2016 14:29:03 +0200 Date: Sun, 12 Jun 2016 14:29:03 +0200 From: =?utf-8?Q?S=C3=A9bastien?= Hinderer To: caml-list@inria.fr Message-ID: <20160612122903.GA10267@pl-59055.rocqadm.inria.fr> Mail-Followup-To: caml-list@inria.fr MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit Subject: [Caml-list] Logging to a channel form C Dear all, Assuming a channel chan has been opened with open_out, is there a recommended way to write to the underlying file from a C program? Is it a matter of passing chan to the C program and then extracting the file descriptor with the help of "caml/io.h" ? Thanks, Sébastien.