libs/editorinterface/src/EditorInterface.cpp
// pass a char * that has enough to accomadate strlen + 1
pass a char * that has enough to accomadate strlen + 1
pass a char * that has enough to accomadate strlen + 1
int EditorInterface::readString(int socket, char * charBuff, int strlen) {
	int returnValue = ReceiveBuffer(socket, charBuff, strlen);
	if(returnValue == 0) {
		*charBuff='\0';
	} else {
		charBuff[strlen] = '\0';
	}
	return(returnValue);
}
int EditorInterface :: readString ( int socket , char * charBuff , int strlen ) { int returnValue = ReceiveBuffer ( socket , charBuff , strlen ) ; if ( returnValue == 0 ) { * charBuff = ' \0 ' ; } else { charBuff [ strlen ] = ' \0 ' ; } return ( returnValue ) ; }
pass a char * that has enough to accomadate strlen + 1
pass a char * that has enough to accomadate strlen + 1