String.h for IXM (sorta)

0 views
Skip to first unread message

Matt

unread,
Oct 14, 2009, 1:07:10 AM10/14/09
to illum...@googlegroups.com

Just a reference… this compiles at least :)

 

-Matt

IXMString.h
IXMString.cpp

Dave Ackley

unread,
Oct 14, 2009, 9:56:41 AM10/14/09
to illum...@googlegroups.com
It's also worth noting that you can just
include <string.h> itself, so long as
you avoid functions like 'strdup', that
require malloc.

For example, this sketch compiles and
runs fine:

--
#include <string.h>

void test(u8 * packet) {
if (strstr((char *) packet, "ook"))
pprintf("'%p' contains 'ook'\n", packet);
}
void setup() {
Body.reflex('t',test);
}
void loop() { }
--

- Dave

Matt wrote:
> Just a reference. this compiles at least :)
>
>
>
> -Matt
>
>

Reply all
Reply to author
Forward
0 new messages