Pascal String
From WinBolo
(Difference between revisions)
Revision as of 03:57, 27 November 2008
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';