From: mrh99 AT uswest DOT net (Matthew Haley) Newsgroups: comp.os.msdos.djgpp Subject: Re: Help me to do a function! Organization: Home Message-ID: <37f28da2.2736866@news.uswest.net> References: X-Newsreader: Forte Free Agent 1.11/32.235 Lines: 38 Date: Wed, 29 Sep 1999 22:11:38 GMT NNTP-Posting-Host: 209.181.105.104 X-Trace: news.uswest.net 938642946 209.181.105.104 (Wed, 29 Sep 1999 17:09:06 CDT) NNTP-Posting-Date: Wed, 29 Sep 1999 17:09:06 CDT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi Jan , ====begin hello2.c==== #include void say_hello(void); /* This is the prototype for the function */ int main(void) { say_hello(); return 0; } void say_hello(void) /* this is the the function */ { printf("Hello World!\n"); } ====end hello2.c===== Also, I highly recommend that you do get a book on C. On Wed, 29 Sep 1999 19:21:03 GMT, <> wrote: >This might sound silly but can anyone help me how to do a simple function? >I need to know how to declare one and how to do the real one. > >Thanxs in advance! > > =================================== Matthew Haley mrh99 AT uswest DOT net http://www.users.uswest.net/~mrh99 ===================================