Help Contents / Data Structure Primitives / Constructors / StringBuffer

StringBuffer length

outputs a word of length length, containing only null characters. This may be neccessary if one uses DLCall and needs a string buffer. 

Example: 

	to GetCurrentDirectory 
		local [buf status w] 
		buf=StringBuffer 256 
		status=DLCall kernel32 [GetCurrentDirectoryA] (list "Int 
			"bufferLength "Int 4*count buf 
			"buffer "Word buf) 
		output StringBufferToWord buf 
	end 
	kernel32=DynamicLibrary "kernel32 
	show GetCurrentDirectory 


previous: replace	next: StringBufferToWord
