WinAPI Reference
WinAPI Programmer's References
Win32
Win32 Multimedia
OLE
Pen API
Sockets 2
Telephony API (TAPI)

Websites for programmers
Delphi Tips&Tricks
Unix Manual Pages
MegaDetailed.Net

Software for programmers
Delphi components
.Net components

Free Components For Delphi and C++ Builder

SysAllocStringLen

pch, cch)
OLECHAR FAR* pch
unsigned int cch

Allocates a new string, copies cch characters from the passed string into it, and then appends a null character.

Parameter

pch

A pointer to cch characters to copy, or NULL to keep the string uninitialized.

cch

Number of characters to copy from pch*. A null character is placed afterwards, making a total of cch+1 characters allocated.

Return Value

Points to a copy of the string or NULL, if insufficient memory exists.

Comments

If pch is NULL, a string of the requested length is allocated, but not initialized. The string pch can contain embedded null characters and need not end with a null. The returned string should later be freed with SysFreeString.


Programming books recommended by Amazon.com

More programming books on Amazon.com