Shell - c Full Example
Sean Cole (Pi)
sean at pidigital.co.uk
Thu Jul 6 12:40:53 EDT 2017
Hi
Is C# any different in terms of calls and compiling?
Thanks JB
Sean Cole
*Pi Digital Productions Ltd*
On 30 June 2017 at 15:35, Bob Sneidar via use-livecode <
use-livecode at lists.runrev.com> wrote:
> Sow how would you do that? static char rev[MAX -1]? rev[i++] =
> *str & NULL?
> >
> >>
>
> Bob S
> >>
> > On Jun 29, 2017, at 20:20 , Mark Wieder via use-livecode <
> use-livecode at lists.runrev.com> wrote:
> >
> >> char* getReverse(char const str[]){
> >> static int i=0;
> >> if(*str){
> >> getReverse(str+1);
> >> }
> >> return rev;
> >> }
> >
> > Nice use of recursion, but note that you're susceptible to buffer
> overflow if you don't limit str to MAX-1 chars. And rev should be
> null-terminated.
> >
> > --
> > Mark Wieder
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
More information about the use-livecode
mailing list