From: Joel Reymont <joelr1@gmail.com>
To: Caml List <caml-list@inria.fr>
Subject: Wrapping a C function that takes a variable number of arguments
Date: Fri, 7 Sep 2007 00:24:28 +0100 [thread overview]
Message-ID: <6A9B2713-FD3C-4E27-89B1-002A05DA2D26@gmail.com> (raw)
I'm trying to figure out how to wrap Cocoa's NSLog [1].
It's basically just like fprintf in that the signature looks like this
void NSLog(NSString *format, ...);
There must be an idiomatic way of creating a wrapper for such a
function, probably with a bit of dark magic. Would someone please
show me how?
Thanks, Joel
[1] http://www.cocoadev.com/index.pl?NSLog
--
http://wagerlabs.com
next reply other threads:[~2007-09-06 23:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-06 23:24 Joel Reymont [this message]
2007-09-07 2:34 ` [Caml-list] " skaller
2007-09-07 7:08 ` Daniel Bünzli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6A9B2713-FD3C-4E27-89B1-002A05DA2D26@gmail.com \
--to=joelr1@gmail.com \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox