def _int_endf(s):
    """Convert string to int. Used for INTG records where blank entries
    indicate a 0.

    Parameters
    ----------
    s : str
        Integer or spaces

    Returns
    -------
    integer
        The number or 0
    """
    s = s.strip()
    return int(s) if s else 0