Measurement of the K-shell photoionization cross section of C iv through the L-shell photoabsorption spectra