Re: String functions
yes, string functions can be implemented with pbp code blocks but just like in your "serout code space " thread
what looks like a simple code block often turns out to be larger,slower,clunkier and having much less functionality than a properly integrated
piece of code . unless its done in asm of course but thats no guarantee . asm code that takes full advantage of chip resources over the range
of chips that pbp supports is not that simple to implement , with 8/16 bit fsr's , linear memory etc it gets complicated.
i'm sure programers could integrate some handy equivlents of some useful C functions ,but a lot can be emulated anyway
len() eg for j = 0 to len(mystr): do stuff : next
equiv j=0: while mystr[j] : do stuff : j=j+1:wend
strcat() eg newstr = oldstr+mystr (c strcat(newstr,oldstr); strcat(newstr,mystr) )
equiv arraywrite newstr,[str oldstr,str mystr]
atoi() eg int j = atoi(mystr)
equiv arrayread mystr,[dec j]
strok() missing in action
Warning I'm not a teacher
Bookmarks