Shop OBEX P1 Docs P2 Docs Learn Events
string length — Parallax Forums

string length

Brian CarpenterBrian Carpenter Posts: 728
edited 2007-03-31 16:37 in Propeller 1
is there a way to determine the character length of a string in program

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔


It's Only A Stupid Question If You Have Not Googled It First!!

Comments

  • cgraceycgracey Posts: 14,133
    edited 2007-03-31 05:14
    There is a Spin instruction called STRSIZE(stringaddress) that will return the length of a zero-terminated string.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔


    Chip Gracey
    Parallax, Inc.
  • Brian CarpenterBrian Carpenter Posts: 728
    edited 2007-03-31 16:37
    thanks Chip

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔


    It's Only A Stupid Question If You Have Not Googled It First!!
Sign In or Register to comment.