\documentclass[a4paper]{article}
\usepackage[margin=2cm]{geometry}
\usepackage{lmodern}
\usepackage{listings}
\usepackage[hidelinks]{hyperref}
\usepackage{MnSymbol}

\title{meshwalk-2.0\footnote{\url{https://mathr.co.uk/meshwalk/}}}
\author{Claude Heiland-Allen\footnote{\url{mailto:claude@mathr.co.uk}}}
\date{2018}

\lstset{prebreak=\raisebox{0ex}[0ex][0ex]
        {\ensuremath{\rhookswarrow}}}
\lstset{postbreak=\raisebox{0ex}[0ex][0ex]
        {\ensuremath{\rcurvearrowse\space}}}
\lstset{breaklines=true, breakatwhitespace=true}
\lstset{numbers=left, numberstyle=\scriptsize}

\begin{document}
\maketitle

\lstinputlisting[language=C, breaklines=true, breakatwhitespace=true]{meshwalk-2.0.c}

\end{document}

