FACT++  1.0
void get_service_format ( )

Definition at line 1118 of file didMarkus.c.

References Curr_service_format, Curr_service_list, Curr_service_name, and str.

Referenced by ok_pop_up(), and recv_service_info().

1119 {
1120 
1121  char str[256], *ptr, *ptr1;
1122  int rpc_flag;
1123 
1124  strcpy(str,Curr_service_name);
1125  rpc_flag = 0;
1126  if( (ptr = strstr(str,"/RpcIn")) )
1127  {
1128  *ptr = '\0';
1129  rpc_flag = 1;
1130  }
1131  if( (ptr = strstr(str,"/RpcOut")) )
1132  {
1133  *ptr = '\0';
1134  rpc_flag = 2;
1135  }
1136  strcat(str,"|");
1137  if( (ptr = strstr(Curr_service_list,str)) )
1138  {
1139  if(!rpc_flag)
1140  {
1141  ptr += strlen(str);
1142  ptr1 = strchr(ptr,'|');
1143  }
1144  else if(rpc_flag == 1)
1145  {
1146  ptr += strlen(str);
1147  ptr1 = strchr(ptr,',');
1148  }
1149  else
1150  {
1151  ptr += strlen(str);
1152  ptr = strchr(ptr,',');
1153  ptr++;
1154  ptr1 = strchr(ptr,'|');
1155  }
1156  strncpy(Curr_service_format,ptr,(int)(ptr1 - ptr));
1157  Curr_service_format[(int)(ptr1-ptr)] = '\0';
1158  }
1159 }
char str[80]
Definition: test_client.c:7
char Curr_service_name[132]
Definition: didMarkus.c:12
char * Curr_service_list
Definition: didMarkus.c:23
char Curr_service_format[256]
Definition: didMarkus.c:13

+ Here is the caller graph for this function: