[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 
>functions.
>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!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/CFFolB/TM
--------------------------------------------------------------------~-> 

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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ColorComputer/

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

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 





More information about the Coco mailing list