FreeCalypso > hg > freecalypso-sw
diff gsm-fw/g23m-aci/aci/ati_prs.c @ 786:e7250023ca12
aci: ati_phb.c, ati_prs.c and ati_ret.c done
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Thu, 12 Mar 2015 06:53:01 +0000 |
parents | eedbf248bac0 |
children |
line wrap: on
line diff
--- a/gsm-fw/g23m-aci/aci/ati_prs.c Thu Mar 12 05:29:06 2015 +0000 +++ b/gsm-fw/g23m-aci/aci/ati_prs.c Thu Mar 12 06:53:01 2015 +0000 @@ -21,6 +21,11 @@ #ifndef ATI_PRS_C #define ATI_PRS_C +#include "config.h" +#include "fixedconf.h" +#include "condat-features.h" +#include "aci_conf.h" + #include "aci_all.h" #include <stdio.h> @@ -308,8 +313,9 @@ return 0; s++; } - if ( *b > '9' OR *b < '0') return 0; /*check if numeric value*/ - else + if ( *b > '9' OR *b < '0') + return 0; /*check if numeric value*/ + else *s++ = *b++; } if(*(b-1) NEQ '"') @@ -416,7 +422,7 @@ b++; } - return ((*len) ? b : 0); + return ((*len) ? b : 0); }