TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: Joshua Marshall
from: Paul Wankadia
date: 1996-10-15 20:06:48
subject: Auto string-length determination

On 06 Oct 96, Joshua Marshall wrote to Paul Wankadia --



 PW> My input routine requires that the programmer pass (as a parameter) the

 PW> maximum length of the string :

 PW> int Get_Input(char *, int, Idle_Ptr = Idle, int = 0, char * =
"\x00");

 JM> My suggestion would be to declare the function to return a char *

 JM> rather than an int.  This way it doesn't matter how big the array is

 JM> since you're not copying to it.



EH?  Please explain what you mean in that last sentence (I don't quite get

what you're trying to say) ...?



Chow.



Junyer Hakker.



--- PPoint 2.00

* Origin: Junyer's Workshop (3:640/772.3)
SEEN-BY: 50/99 620/243 623/630 640/201 206 216 217 222 230 238 254 297 305
SEEN-BY: 640/309 370 375 386 531 535 547 739 750 772 773 820 821 822 823 890
SEEN-BY: 640/895 690/660 711/409 410 413 430 808 809 932 934 712/515 713/888
SEEN-BY: 714/906 800/1
@PATH: 640/772 531 201 820 711/409 808 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.