[Coco] Re: [Color Computer] String libary

Charles Richmond richmond at plano.net
Mon Sep 26 12:33:14 EDT 2005

If I remember my BASIC correctly, just use the following:

#define  RIGHT(s,n)     (strlen(s)+(n))

#define  LEFT(s,n)      ((s)[n] = '\0', (s))

#define  MID(s,m,n)     (LEFT(RIGHT(s,(m)),(n)-(m)))

>    I am looking for a C String libary that emulates the BASIC string 
>That is RIGHT$, LEFT$, MID$, and ect.
>John Donaldson

|   Charles and Francis Richmond     richmond at plano dot net   |

------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!

Brought to you by the 6809, the 6803 and their cousins! 
Yahoo! Groups Links

<*> To visit your group on the web, go to:

<*> To unsubscribe from this group, send an email to:
    ColorComputer-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:

More information about the Coco mailing list