122-32000 Parallax Inc, 122-32000 Datasheet - Page 311
122-32000
Manufacturer Part Number
122-32000
Description
MANUAL PROPELLER
Manufacturer
Parallax Inc
Specifications of 122-32000
Accessory Type
Manual
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
Propeller Education (PE) Kit
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
- Current page: 311 of 438
- Download datasheet (5Mb)
STRSIZE
Get size of string.
((PUB ┆ PRI))
Returns: Size (in bytes) of zero-terminated string.
Explanation
STRSIZE
string.
including, a zero-termination byte.
Using STRSIZE
The following example assumes
PUB Main
DAT
The above example has two zero-terminated strings in the
Main
displays a value, this example prints 11 and 8 on the display.
Zero-Terminated Strings
The
to 0 must immediately follow the string. This practice is quite common and is recommended
since most string-handling methods rely on zero terminators.
STRSIZE
Print(strsize(@Str1))
Print(strsize(@Str2))
Str1 byte "Hello World", 0
Str2 byte "Testing.", 0
•
STRSIZE
method calls
StringAddress
STRSIZE
is one of two commands (
( StringAddress )
command requires the string being measured to be zero-terminated; a byte equal
measures the length of a string at StringAddress, in bytes, up to, but not
STRSIZE
is an expression specifying the starting address of the string to measure.
to get the length of each string. Assuming
Print
STRCOMP
4: Spin Language Reference –
is a method created elsewhere.
and
STRSIZE
) that retrieve information about a
DAT
Propeller Manual v1.0 · Page 311
block,
Print
Str1
is a method that
and
Str2
. The
Related parts for 122-32000
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
MANUAL FOR SUMOBOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
GUIDE STUDENT PROCESS CONTROL
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
GUIDE STUDENT SMART SENSORS
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
LEAD WIRES FLYING CABLE III/IV
Manufacturer:
Xilinx Inc
Datasheet:
Part Number:
Description:
BOARD ADAPTER AND FLY LEADS
Manufacturer:
Xilinx Inc
Datasheet:
Part Number:
Description:
PLATFORM CABLE USB II
Manufacturer:
Xilinx Inc
Datasheet:
Part Number:
Description:
KIT STARTER COOLRUNNER-II BUNDLE
Manufacturer:
Xilinx Inc
Datasheet:
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BOARD EXPERIMENT+LCD NX-1000
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
IC MCU 2K FLASH 50MHZ SO-18
Manufacturer:
Parallax Inc
Datasheet: