[NEWBIE]Returning an array?

From: Pure Krome (Pure@SPRINT.COM.AU)
Date: 02/21/98


G'day.
    This is BOG SIMPLE. How do i return an array from a function in some
file ?
the array was going to hold some valid races .... so i suppose that can
be the connection to circle :) i was doing it with some static int, but
didn't like the messy code i had. Any suggestions please?

eg.

funtion foo(..){
    int some_array[SOMENUMBER];

...
    do some check on some var ..
    insert some numbers in the array ..

return the array to the function call in another file.
}

Jussy the blond.


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST