Charles Sturt University in Port Macquarie evicted six international students from a library last month after it was discovered the students were sleeping there overnight.

CSU Deputy Vice-Chancellor Jenny Roberts said the students were given choices of accommodation through the University.

President of the National Union of Students, Mark Pace, said with Australian universities attracting more international students and the demand for affordable housing increasing, he is not surprised these students found they had to sleep on campus.