This function checks whether the given buffer exists in memory or not. If it does the function will return true otherwise it will return false.
buffer_exists(buffer)
Argument | Type | Description |
---|---|---|
buffer | Buffer | The buffer to check. |
if (buffer_exists(buff))
{
buffer_delete(buff);
}
The above code checks to see if the variable buff holds a buffer and if it does, the buffer is deleted.