how to pass by reference??

Spencer Doidge spencer at spencerdoidge.com
Sun Feb 3 20:28:38 EST 2002


I really tried to RTM first this time, but I failed.
Can someone give me a hint where in the doc html's it explains how to pass
by reference?
Specifically, I want to do the equivalent of this:

char s[10];

void foo(char *bfr)
{
bfr[0] = 'a';
bfr[1] = 'b';
return;
}

void main(void)
{
foo(s);
return;
}





More information about the Python-list mailing list