comparison 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
comparison
equal deleted inserted replaced
785:09382de17df9 786:e7250023ca12
19 */ 19 */
20 20
21 #ifndef ATI_PRS_C 21 #ifndef ATI_PRS_C
22 #define ATI_PRS_C 22 #define ATI_PRS_C
23 23
24 #include "config.h"
25 #include "fixedconf.h"
26 #include "condat-features.h"
27 #include "aci_conf.h"
28
24 #include "aci_all.h" 29 #include "aci_all.h"
25 30
26 #include <stdio.h> 31 #include <stdio.h>
27 #include <stdarg.h> 32 #include <stdarg.h>
28 #include <ctype.h> 33 #include <ctype.h>
306 b = parseHex(2,b+1,(UBYTE *) s); /* ES!! ZERO ? */ 311 b = parseHex(2,b+1,(UBYTE *) s); /* ES!! ZERO ? */
307 if (!b) 312 if (!b)
308 return 0; 313 return 0;
309 s++; 314 s++;
310 } 315 }
311 if ( *b > '9' OR *b < '0') return 0; /*check if numeric value*/ 316 if ( *b > '9' OR *b < '0')
312 else 317 return 0; /*check if numeric value*/
318 else
313 *s++ = *b++; 319 *s++ = *b++;
314 } 320 }
315 if(*(b-1) NEQ '"') 321 if(*(b-1) NEQ '"')
316 return 0; 322 return 0;
317 *s = 0; /* zero terminated */ 323 *s = 0; /* zero terminated */
414 if(*b EQ '"') 420 if(*b EQ '"')
415 { 421 {
416 b++; 422 b++;
417 } 423 }
418 424
419 return ((*len) ? b : 0); 425 return ((*len) ? b : 0);
420 } 426 }
421 427
422 428
423 #ifdef GPRS 429 #ifdef GPRS
424 430