Re: fprintf question

From: Lorinczy Zsigmond / Domonyik Mariann (lzsiga_at_axelero.hu)
Date: 03/19/04


Date: Fri, 19 Mar 2004 06:39:05 +0100

tpang wrote:
 
> #include <stdio.h>
> main()
> {
> fprintf(stderr,"%s\n", 0);
> }
>
> This piece of code on HPUX print out nothing.
> This is what I want.
>
> But on RedHat 8.0
> This piece of code print out
> (null)
>
> I am porting code from HPUX to RedHat 8
> This behavior cause me lots of grief.
>
> How do I make RedHat to print out nothing.

try:

fprintf (stderr, "%.*s\n", 0, 0);



Relevant Pages

  • Re: fprintf question
    ... tpang wrote: ... > This piece of code on HPUX print out nothing. ... > I am porting code from HPUX to RedHat 8 ...
    (comp.unix.programmer)
  • Re: fprintf question
    ... >>This piece of code on HPUX print out nothing. ... >>I am porting code from HPUX to RedHat 8 ... mac the naïf ...
    (comp.unix.programmer)
  • fprintf question
    ... This piece of code on HPUX print out nothing. ... I am porting code from HPUX to RedHat 8 ... This behavior cause me lots of grief. ...
    (comp.unix.programmer)
  • Re: Recommendations on switching from RedHat to new distro?
    ... > The only thing I'm having grief with is playing videos.  The xmms as ... The MP3 situation is very well documented at this point. ... Fraunhofer's original plans in 2002, but either way, Redhat is having no ... truck with software that isn't strictly open source these days. ...
    (alt.linux)
  • Re: Recommendations on switching from RedHat to new distro?
    ... > The only thing I'm having grief with is playing videos.  The xmms as ... The MP3 situation is very well documented at this point. ... Fraunhofer's original plans in 2002, but either way, Redhat is having no ... truck with software that isn't strictly open source these days. ...
    (alt.os.linux)