Posted by Eian on 1999-05-06
> You also would not want to return a reference to incoming array. > you should just do > return incoming[i]; Actually though, I would since incoming[i] is dereferanced, and I am wanting a pointer. Not passing back the address would then cause the function to simply return the first character in the string. And then when you went to access it you would get some seg fault or something when you tried to access that location in memory. Eian /-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\ | -=< THIATS >=- | | This is a THIATS signature. | | | | GNU eat your heart out! | | | \-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-/
Previous post | Next post | Timeline | Home