Sophie Dexter
/
Just4Trionic
Just4Trionic - CAN and BDM FLASH programmer for Saab cars
Diff: strings.h
- Revision:
- 1:d5452e398b76
- Parent:
- 0:e0b964252a05
--- a/strings.h Wed May 19 12:39:18 2010 +0000 +++ b/strings.h Tue Sep 14 21:02:04 2010 +0000 @@ -1,12 +1,27 @@ +/******************************************************************************* -// strings.h - information and definitions needed for working with strings of characters (ascii 'char') +strings.h - information and definitions needed for working with strings of +characters (ascii 'char') +(c) 2010 by Sophie Dexter + +******************************************************************************** -#define TRUE 1 -#define FALSE 0 +WARNING: Use at your own risk, sadly this software comes with no guarantees. +This software is provided 'free' and in good faith, but the author does not +accept liability for any damage arising from its use. + +*******************************************************************************/ + +#include "common.h" +#include "sizedefs.h" extern char *StrCpy(char *s1, char *s2); extern int StrLen(char *s); extern bool StrCmp(char *s1, char *s2); extern char ToUpper(char c); extern char ToLower(char c); -extern char *aToh(char *s); \ No newline at end of file +extern char *aToh(char *s); +extern char *StrAddc (char *s, const char c); +extern uint8_t ascii2nibble(char str); +extern bool ascii2int(uint32_t* val, const char* str, uint8_t length); +extern int isxdigit ( int ch );