simple c 's printf problem in mandrake8.0

eric fsshl@centurytel.net
Mon Dec 31 13:28:00 GMT 2001


Dear Stephano:

  both are not work on bash but work on csh on my mandrake 8.0, I also
webmail them (mandrakesoft) on tech support, but they said it in not in
the scope they want to support.



Stephano Mariani wrote:
> 
> Here is what I mean:
> 
> #include <stdio.h>
> 
> int main(int argc,char*const*argv)
> {
>   printf("Hello World"); /* No linefeed */
>   fflush(stdout); /* Likewise for any other stream(s) you use */
>   _exit(0);
> }
> 
> or even
> 
> #include <stdio.h>
> 
> int main(int argc,char*const*argv)
> {
>   if(setvbuf(stdout,NULL,_IONBF,(size_t)0)) /* Set buffering off */
>   {
>     /* Deal with error */
>   }
>   printf("Hello World"); /* No linefeed */
>   _exit(0);
> }
> 
> Does that work... If not, get in touch with mandrakesoft on their
> mailing lists.
> 
> Stephano Mariani
>



More information about the Gcc-help mailing list