ArrayStack.TopString Method

Reads a string value from a stack without removing it.

void TopString(char[] buffer, int maxlength, int& written)

Parameters

char[] buffer

Buffer to store string.

int maxlength

Maximum size of the buffer.

int& written

Number of characters written to buffer, not including the null terminator.

Errors

The stack is empty.