[BCX] Re: CHAR array question...
Kenny Chan
Wed Nov 12 22:08:47 PST 2008
I don't know C#. Can you rewrite that with C?
Thanks.
--- rwishlaw <rwishlaw at asNH4ctvnLZCJGu8oExeC2Ox65lKkJ4fgEstq89OaCsX4f44P8sgdgu6cFstm7FGmEB1L1igE7tehQ.yahoo.invalid> wrote:
> --- In BCX at yahoogroups.com, Michael S. Sanders
> <mike at ...> wrote:
> >
> >
> > > can also be coded thusly, eliminating the
> overhead of calling the
> > > C runtime function "memmove" which BCX
> translates POKE into.
> >
> > Ahh! Thanks Kevin, I was in fact wondering about
> that very thing.
> >
> > --
> > Later on,
> > Mike
> >
>
> That very thing is most useful.
>
> DIM i%, l%
> DIM str1$
>
> str1$ = "tI esreveR"
> l% = LEN(str1$) - 1
>
> DO WHILE i% < l%
> str1[i] = str1[i] XOR str1[l]
> str1[l] = str1[l] XOR str1[i]
> str1[i] = str1[i] XOR str1[l]
> l--
> i++
> LOOP
>
> PRINT str1$
>
> adapted from C# code by Kevin A. Boucher posted at
>
http://janetandkevin.com/Blog/archive/2005/01/27/190.aspx
>
> Robert Wishlaw
>
>
More information about the BCX
mailing list