...ds_t us; intmax_t tmp; /* Scan the number from the string into the temporary variable. */ sscanf(str, "%jd", &tmp); /* Check that the value is within the valid range of susecond…