FACT++  1.0
int read_str_char ( char *  str,
char *  cc 
)

Definition at line 2336 of file webDid.c.

Referenced by did_read_string().

2337 {
2338  int num;
2339 
2340  if(str[0] == '\'')
2341  *cc = str[1];
2342  else if(str[0] == '\"')
2343  return(0);
2344  else if((str[0] == '0') && (str[1] == 'x'))
2345  {
2346  sscanf(str+2,"%x",&num);
2347  if(num <= 0xff)
2348  *cc = (char)num;
2349  else
2350  return(-1);
2351  }
2352  else if(isalpha(str[0]))
2353  return(-1);
2354  else
2355  {
2356  sscanf(str,"%d",&num);
2357  if(num <= 0xff)
2358  *cc = (char)num;
2359  else
2360  return(-1);
2361  }
2362  return(1);
2363 }
char str[80]
Definition: test_client.c:7

+ Here is the caller graph for this function: