[plt-scheme] printing question
At Sun, 02 Mar 2008 22:22:40 -0500, tom sgouros wrote:
> But tell me, all I want to do is to
> print out a formatted scheme string, and this seems way more trouble
> than it's worth. But I had tried using scheme_printf(), but with this:
>
> if (SCHEME_CHAR_STRINGP(argv[1])) {
> scheme_printf("Waiting to start: ~a~n",22,1,&argv[1]);
>
> I get this:
>
> > (trigger "jello")
> printf: format string requires 0 arguments, given 1; arguments were: "jello"
>
> Do I need to escape the tildes in some way? Or is there something else
> dumb I'm doing here?
scheme_printf() wants a `mzchar*' as its first argument. Use
scheme_printf_8utf8() above, since you're supplying a `char*'.
Matthew