Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* Wrapping a C function that takes a variable number of arguments
@ 2007-09-06 23:24 Joel Reymont
  2007-09-07  2:34 ` [Caml-list] " skaller
  0 siblings, 1 reply; 3+ messages in thread
From: Joel Reymont @ 2007-09-06 23:24 UTC (permalink / raw)
  To: Caml List

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






^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-09-07  7:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-06 23:24 Wrapping a C function that takes a variable number of arguments Joel Reymont
2007-09-07  2:34 ` [Caml-list] " skaller
2007-09-07  7:08   ` Daniel Bünzli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox