FACT++  1.0
void get_service_format ( )

Definition at line 1133 of file did.c.

References Curr_service_format, Curr_service_list, Curr_service_name, and str.

Referenced by ok_pop_up(), and recv_service_info().

1134 {
1135 
1136  char str[256], *ptr, *ptr1;
1137  int rpc_flag;
1138 
1139  strcpy(str,Curr_service_name);
1140  rpc_flag = 0;
1141  if( (ptr = strstr(str,"/RpcIn")) )
1142  {
1143  *ptr = '\0';
1144  rpc_flag = 1;
1145  }
1146  if( (ptr = strstr(str,"/RpcOut")) )
1147  {
1148  *ptr = '\0';
1149  rpc_flag = 2;
1150  }
1151  strcat(str,"|");
1152  if( (ptr = strstr(Curr_service_list,str)) )
1153  {
1154  if(!rpc_flag)
1155  {
1156  ptr += strlen(str);
1157  ptr1 = strchr(ptr,'|');
1158  }
1159  else if(rpc_flag == 1)
1160  {
1161  ptr += strlen(str);
1162  ptr1 = strchr(ptr,',');
1163  }
1164  else
1165  {
1166  ptr += strlen(str);
1167  ptr = strchr(ptr,',');
1168  ptr++;
1169  ptr1 = strchr(ptr,'|');
1170  }
1171  strncpy(Curr_service_format,ptr,(size_t)(ptr1 - ptr));
1172  Curr_service_format[(int)(ptr1-ptr)] = '\0';
1173  }
1174 }
char Curr_service_name[132]
Definition: did.c:12
char str[80]
Definition: test_client.c:7
char Curr_service_format[256]
Definition: did.c:13
char * Curr_service_list
Definition: did.c:23

+ Here is the caller graph for this function: