Sujet : Re: on changing paradigm of assign call
De : fir (at) *nospam* grunge.pl (fir)
Groupes : comp.lang.cDate : 01. Sep 2024, 15:29:19
Autres entêtes
Organisation : i2pn2 (i2pn.org)
Message-ID : <f334f21f2f8f1afb862532c851cec37524acf026@i2pn2.org>
References : 1
User-Agent : Mozilla/5.0 (Windows NT 5.1; rv:27.0) Gecko/20100101 Firefox/27.0 SeaMonkey/2.24
fir wrote:
>
find_character_position(txt, 'x');
if(found>=0)....
wel in fact this should set a boolean "found" and unsigned "position"
find_character_position(txt, 'x');
if(found) printf("found at %d", position);
it looks weird as soem must know thet {find_character_position, found, position} is a set of names provided by thsi function not only the name but coders are expected to know function name so they could be expected to know whole set...