Re: First program in C - what is going on with function returns?
- From: "Herbert Rosenau" <os2guy@xxxxxxxxxxxxx>
- Date: Sun, 30 Apr 2006 19:16:33 +0000 (UTC)
On Sun, 30 Apr 2006 11:50:11 UTC, ben.carbery@xxxxxxxxx wrote:
I think I did this since I couldn't figure out how to return a string.
"char speakdate(int d, int m, int y) {" works ok, but
char *speakdate(int d, int m, int y);
will do the trick. You should return a pointer the the string you've
builded.
--
Tschau/Bye
Herbert
Visit http://www.ecomstation.de the home of german eComStation
eComStation 1.2 Deutsch ist da!
.
- References:
- First program in C - what is going on with function returns?
- From: ben . carbery
- Re: First program in C - what is going on with function returns?
- From: Bill Pursell
- Re: First program in C - what is going on with function returns?
- From: ben . carbery
- First program in C - what is going on with function returns?
- Prev by Date: Re: help me learn C
- Next by Date: Re: First program in C - what is going on with function returns?
- Previous by thread: Re: First program in C - what is going on with function returns?
- Next by thread: Re: First program in C - what is going on with function returns?
- Index(es):
Relevant Pages
|