this is the traversal to print the list

recordpointer=stocks;

while (anotherrecord(recordpointer))

{

printrecord(recordpointer);

recordpointer = next(recordpointer);

}