Re: First program in C - what is going on with function returns?



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!
.



Relevant Pages