How do i convert decimal time to hours and minutes?

How do i get the decimal time with scanf and put it in a variable and the print it as hours minutes and secondes in C.

Example:
Input: 1.23h

Output:1h 13min 48sec