[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference noted::hackers_v1

Title:-={ H A C K E R S }=-
Notice:Write locked - see NOTED::HACKERS
Moderator:DIEHRD::MORRIS
Created:Thu Feb 20 1986
Last Modified:Mon Aug 03 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:680
Total number of notes:5456

348.0. "The STR library" by EAGLE1::DANTOWITZ (David .. DTN: 226-6957) Thu Oct 30 1986 14:19

	Does the following sequence of calls cause a problem
	with the heap?


        "Initialize DESCR to a null dynamic descriptor"

	STR$COPY_DX (%ASCID'12345', DESCR);  ! 5 characters

	STR$COPY_DX (%ASCID'321', DESCR);    ! 3 characters

	STR$FREE1_DX (DESCR);                ! return the memory


	In the FREE1_DX call DESCR has a length of 3, is there
	any problem with this or is it taken care of by the
	STR library?

	David
T.RTitleUserPersonal
Name
DateLines
348.1CLT::GILBERTeager like a childFri Oct 31 1986 18:062
    The parameters to STR$COPY_DX are reversed.  That corrected,
    the answer to your question is "There's no problem".