*BSD News Article 74953


Return to BSD News archive

#! rnews 1251 bsd
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!newsfeed.direct.ca!hunter.premier.net!news-res.gsl.net!news.gsl.net!news.mathworks.com!uunet!in3.uu.net!netnews.worldnet.att.net!ix.netcom.com!netcom.net.uk!xara.net!agate.xara.net!sonnet!usenet
From: "Chris Harper" <clh@sonnet.co.uk>
Newsgroups: comp.unix.bsd.bsdi.misc
Subject: Re: C Programming Help
Date: 29 Jul 1996 17:45:40 GMT
Organization: Sonnet Internet
Lines: 33
Message-ID: <01bb7d80$a9549840$6400e0c3@labrys.sonnet.co.uk>
References: <Edina1996Jul23.202436.23721@news3.idirect.com.compulink.com>
NNTP-Posting-Host: labrys.sonnet.co.uk
X-Newsreader: Microsoft Internet News 4.70.1132



Peter Pohlmann <peter@e-partner.com> wrote in article
<Edina1996Jul23.202436.23721@news3.idirect.com.compulink.com>...
> Hello there,
> 
> i just got bsd 2.01. I have a small question:
> 
> 
> Programming the following code does not show anything on the screen, 
> why??
> 
> #include <stdio.h>
> 
>  main()
> 
>   {
>   printf(Hello Test");
>   }
> Please email to peter@e-partner.com.   Thanks
> 

Peter,

You need to provide a format string, try -
 
	printf("%s", "Hello world");

regards
Chris Harper
clh@sonnet.co.uk