sets the info field of the new node
setinfo(p,&value);