On Wed, Jul 29, 2009 at 5:39 PM, Jerry Foote<[email protected]> wrote: > Steve > The if(_item[0] == 'T') works great > Now I have to go learn c > Thanks To all Jerry
Incidentally, if you want to check the first 2 characters, you can use: if ( strncmp( _item, "T1", 2 ) != 0) Notice the 'n' in the function name. This is quite common in C, and especially recommended when you are using strcpy (string copy) to avoid buffer overruns. -- Paul _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

