FACT++  1.0
void get_service_format ( char *  buffer,
char *  service,
char *  format 
)

Definition at line 569 of file webDid.c.

References str.

Referenced by find_services(), and update_command_data().

570 {
571  char str[256], *ptr, *ptr1;
572  int rpc_flag;
573 
574  strcpy(str, service);
575  rpc_flag = 0;
576  *format = '\0';
577  if( (ptr = strstr(str,"/RpcIn")) )
578  {
579  *ptr = '\0';
580  rpc_flag = 1;
581  }
582  if( (ptr = strstr(str,"/RpcOut")) )
583  {
584  *ptr = '\0';
585  rpc_flag = 2;
586  }
587  strcat(str,"|");
588  if( (ptr = strstr(buffer, str)) )
589  {
590  if(!rpc_flag)
591  {
592  ptr += (int)strlen(str);
593  ptr1 = strchr(ptr,'|');
594  }
595  else if(rpc_flag == 1)
596  {
597  ptr += (int)strlen(str);
598  ptr1 = strchr(ptr,',');
599  }
600  else
601  {
602  ptr += (int)strlen(str);
603  ptr = strchr(ptr,',');
604  ptr++;
605  ptr1 = strchr(ptr,'|');
606  }
607  strncpy(format,ptr,(size_t)(ptr1 - ptr));
608  format[(int)(ptr1-ptr)] = '\0';
609  }
610 }
char str[80]
Definition: test_client.c:7
int buffer[BUFFSIZE]
Definition: db_dim_client.c:14

+ Here is the caller graph for this function: