Pascal String
From WinBolo
(Difference between revisions)
Current revision (03:57, 27 November 2008) (view source) |
|||
Line 1: | Line 1: | ||
A pascal string is a string where the first byte contains the string length rather then being NULL terminated. | 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: | + | e.g. |
+ | |||
+ | <pre>str = "Hello\0"</pre> | ||
+ | |||
+ | would be represented as a pascal string as follows: | ||
+ | |||
<pre> | <pre> | ||
str[0] = 5; | str[0] = 5; |
Current revision
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';