CLEO Help Remove last symbol from text

CLEO related
Status
Not open for further replies.

Parazitas

God
Joined
Jan 2, 2017
Messages
3,121
Solutions
5
Reaction score
882
Location
Lithuania
Maybe somebody can tell me how remove last symbol from word?
I mean.:
[shcode=cpp]
0AD4: $NOT_USED = 0@ format "Hello %s" 2@v
[/shcode]

So...,  
%s  is something like " Worldc "
How remove from %s last symbol     " c "  ???

@supahdupahnubah
@monday
@springfield
 
Joined
Dec 31, 2015
Messages
712
Reaction score
27
Well I remember I've answered something simillar in the past

0C17: 1@ = strlen 0@
1@ -= 1
0C24: strncpy destination 0@ source 0@ size 1@
 
Status
Not open for further replies.
Top