The function f2u is defined in fshow.c (among the files distributed for Lab 1).