You would use

printf(fp, "%s~\n", argument);


The ~ is basically the end of that string, so you want it on the same line
as the string itself.

----- Original Message -----
From: "Jeremy Hill" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Sunday, June 09, 2002 5:08 AM
Subject: Conv. Pointers to strings


> *argument is what your writing function is given, right?
>
> Why wouldn't this work?
> sprintf(fp, "%s\n~", *argument);
>
> * is a unary operator that returns the value located at the address of
> argument.
>
> Also, I don't know if you need the tilde in your program; I wrote that
> assuming that's your limiter.
>
>
>
>
> --
> ROM mailing list
> [email protected]
> http://www.rom.org/cgi-bin/mailman/listinfo/rom
>

Reply via email to