Pascal String

From WinBolo

Jump to: navigation, search

A pascal string is a string where the first byte contains the string length rather then being NULL terminated.

e.g.

str = "Hello\0"

would be represented as a pascal string as follows:

str[0] = 5;
str[1] = 'H';
str[2] = 'e';
str[3] = 'l';
str[4] = 'l';
str[5] = 'o';
Personal tools