return several types in a function

Michael Hirmke
Sun Jan 25 14:40:00 GMT 1998

Hi Anonymous,

>I know this is a bit off-topic, but I don't know
>where to look for help.
>What do I write to get a function to return more
>than one thing and type, lets say in a DLL?
>eg foo() should return an int and a char[10].

return a structure containing both types.
Or use call-by-reference.

Btw. - best places to ask things like this are:

>-- Martin

Michael Hirmke           | Telefon +49 (911) 557999
Georg-Strobel-Strasse 81 | FAX     +49 (911) 557664
90489 Nuernberg          | E-Mail
                         | WWW
For help on using this list (especially unsubscribing), send a message to
"" with one line of text: "help".

More information about the Cygwin mailing list