TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: Paul Wankadia
from: Joshua Marshall
date: 1996-10-06 21:24:36
subject: Re: Auto string-length determinatio

Hello Paul,
 In a message dated 29 Sep 96 you wrote to All :

 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");

My suggestion would be to declare the function to return a char * rather
than an int.  This way it doesn't matter how big the array is since you're
not copying to it.


Josh Marshall                        FidoNet   3:640/201.14
Member TEAM AMIGA                    AmigaNet 41:400/869.14

... That which is not good for the swarm, neither is it good for the bee.
--- Mail Manager 1.2x/p #1219
* Origin: It's rude to Point (3:640/201.14{at}fidonet)
SEEN-BY: 50/99 620/243 623/630 640/201 201 206 216 217 222 230 238 254 297
SEEN-BY: 640/305 309 370 375 386 531 820 821 822 823 890 895 690/660 711/409
SEEN-BY: 711/410 413 430 808 809 932 934 712/515 713/888 714/906 800/1
@PATH: 711/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™.