model_server/gala/src/controlObjects.cxx
//--------------------------------------------------------------------------------------------------------
// returns the index of the first empty cell or -1 if all buffer is filled
//--------------------------------------------------------------------------------------------------------
returns the index of the first empty cell or -1 if all buffer is filled
returns the index of the first empty cell or - 1 if all buffer is filled
int imageBuffer::findEmptyCell(void) {
		register i;
		for(i=0;i<m_bufSize;i++) if(m_Buffer[i]==NULL) return i;
		return -1;
	}
int imageBuffer :: findEmptyCell ( void ) { register i ; for ( i = 0 ; i < m_bufSize ; i ++ ) if ( m_Buffer [ i ] == NULL ) return i ; return -1 ; }
returns the index of the first empty cell or -1 if all buffer is filled
returns the index of the first empty cell or - 1 if all buffer is filled