From: "stefan fröberg" Newsgroups: comp.os.msdos.djgpp Subject: HELP ! (returning structures) Date: Wed, 29 Sep 1999 02:57:07 +0300 Organization: SAUNALAHDEN SERVERIN asiakas Lines: 31 Message-ID: <7srkeu$3kh$1@tron.sci.fi> NNTP-Posting-Host: mkcxxi.hdyn.saunalahti.fi X-Newsreader: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com How can functions return whole structures ? Example: struct DATE { unsigned char day_of_week; unsigned short year; unsigned char month; unsigned char day; } extern struct DATE GetDate(void); int main(void) { struct DATE today; today = GetDate(); printf("%u\n",today.day_of_week); printf("%U\n",today.year); printf("%u\n",today.month); printf("%u\n",today.day); } "Just a traveler..." traveler AT netti DOT fi