Re: accessing a printf-like function from scheme

2006-04-25 Thread William Xu
Dan McMahill <[EMAIL PROTECTED]> writes: > I'm trying to provide scheme access to a C function which has the same > interface a printf(). What I'd like to do in scheme is something like But, doesn't SLIB already have this? (info "(slib) Standard Formatted Output") -- William ___

Re: accessing a printf-like function from scheme

2006-04-25 Thread Tomas Zerolo
On Tue, Apr 25, 2006 at 08:44:55AM -0400, Dan McMahill wrote: > > Hello, > > I'm trying to provide scheme access to a C function which has the same > interface a printf(). [...] > SCM g_funcs_log(SCM s_num_list) > { > SCM s_element; > int length; > int i; > > /* Check that the input is

accessing a printf-like function from scheme

2006-04-25 Thread Dan McMahill
Hello, I'm trying to provide scheme access to a C function which has the same interface a printf(). What I'd like to do in scheme is something like (gschem-log "This is a %s message with %d args, pi is %g\n" "log" 3 3.14 ) so I've gotten as far as a function which takes a variabl