TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: Rowan_Crowe
from: Paul Edwards
date: 1996-10-05 13:56:50
subject: Auto string-length determination

ac>   size_t Max_Length = sizeof(String) - 1;

ac> (In other words, the size of the entire array minus one byte for the
ac> null terminator.)

R> But will this still work if the array is not in scope? What if it's passed 
R> to a function as a pointer?

No, it won't.  Not unless you use that syntax I posted recently.  BFN.  Paul. 
@EOT:

---
* Origin: X (3:711/934.9)

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™.