[Coco] "C string searching question

Mark McDougall msmcdoug at iinet.net.au
Tue Oct 2 00:36:55 EDT 2012


On 2/10/2012 2:01 PM, Bill Pierce wrote:

> <I don't suppose you have access to library functions like strlen() and
> <strchr() and strstr() in that context, do you?
> 
> Yes, they are supported. 

Replace the inner loop with:
  if (strstr (records[cnt].recname, srchstr))

Regards,

-- 
|              Mark McDougall                | "Electrical Engineers do it
|  <http://members.iinet.net.au/~msmcdoug>   |   with less resistance!"



More information about the Coco mailing list