Finding Available Length Of Strings...

BRADBERRY,JOHN L gt4512c at prism.gatech.EDU
Fri Nov 9 21:30:26 AEST 1990


When passing strings to other functions, what is the BEST way to find
the bytes remaining in the formal string parameter (to prevent over-
writting the end while in the function)?? Does it involve using the
current starting address of the string parameter and calculating
(somehow) the DEFINED end??

Thanks for any help here...



More information about the Comp.lang.c mailing list