how to use gluNurbsSurface()

In my project I use gluNurbsSurface() to draw NURBS surface. The control points of surface are from a data file. The dimension of Control points array is not fixed. How do I draw this NURBS surface?