From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id HAA32450; Thu, 29 Mar 2001 07:48:51 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id HAA32451 for ; Thu, 29 Mar 2001 07:48:49 +0200 (MET DST) Received: from hci.ucsd.edu (hci.ucsd.edu [132.239.215.210]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f2T5mmH16261 for ; Thu, 29 Mar 2001 07:48:48 +0200 (MET DST) Received: (from dsf@localhost) by hci.ucsd.edu (8.9.3/8.9.3) id VAA13824; Wed, 28 Mar 2001 21:48:42 -0800 To: caml-list@inria.fr Subject: [Caml-list] Quick question - accessing variant value from C From: David Fox Date: 28 Mar 2001 21:48:41 -0800 In-Reply-To: Alex Baretta's message of "Sat, 17 Mar 2001 02:35:47 +0100" Message-ID: X-Mailer: Gnus v5.7/Emacs 20.3 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk I have a value of the following type being passed to an external: type pointer = Null | Address of string and I'd like to determine (in the C code) which variant the value is and get the pointer to the string. I've stared at mlvalues.h for a while, but I can't really figure it out. Can anyone help? You won't regret it... ------------------- To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr