[OpenBIOS] [PATCHv2 1/6] string.fs: add functions to support ROT13 string encoding/decoding

Segher Boessenkool segher at kernel.crashing.org
Sat Feb 13 23:47:48 CET 2016


On Sat, Feb 13, 2016 at 04:10:57PM +0000, Mark Cave-Ayland wrote:
> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland at ilande.co.uk>

Signed-off-by: Segher Boessenkool <segher at kernel.crashing.org>

Have you tested this?  I just typed it in :-)

> +: rot13-str ( str len -- newstr len )
> +  \ Encode copy of input string
> +  strdup 2dup $rot13
> +;

I would do without this one btw, just put the strdup in the caller.


Segher



More information about the OpenBIOS mailing list