[Coco] Re: [Color Computer] String libary
johnadonaldson at comcast.net
johnadonaldson at comcast.net
Mon Sep 26 16:46:35 EDT 2005
Charles,
That will work, except will not the orginal string get distroyed???
John Donaldson
-------------- Original message --------------
> 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/
>
>
>
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco
More information about the Coco
mailing list