ive got a ip like: <ip>:<port>
i wanna strip teh :<port>
there what i came up with
it returns the lst 8 with the port, and i cant figure out why :confused:Code:bool passed=false;
for(int i=0;i<=strlen(server_name);i++){
if(passed){
*server_name=' ';
} else{
if(*server_name==':'){
*server_name=' ';
passed=true;
}
}
*server_name++;
}
