Re: [AD] Update on `const'

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> char* get_filename(char* path);

sorry if what i say sounds stupid, but i really never understood why
a function that takes a read-write pointer should *also* return it.
for me it sounds useless, and should be nicer if it returned something
else (*) ... it there a reason (i mean a good reason :) for this behaviour?

(*) think for example of fgets, it should be nicer if it returned the
number of items succesfully read (a la scanf and printf)


"Chocobos ignore humans who don't look like they'll give them greens"
                                        Final Fantasy 7

_.-:/°^^°\:-._.-:/°^^°\:-._          __.         ____
 - Lo'oRiS il Kabukimono -          / /|       /^___ \
Real Name: Lorenzo Petrone         / / /      / /L_/ /
e-mail: _lano_@xxxxxxxxxx          / / /      /  ___-°/
irc.azzurra.org #lano            / /_/__    /  /|__-°
digilander.iol.it/lano666       /______/|  /__/ /
^°\:-.__.-:/°^°\:-.__.-:/°^     |______|/  |__L/



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/