Let $[ a,b] $ be an interval in $\mathbb R$ and let $F$ be a real valued function defined at the endpoints of $[a,b]$ and with a certain number of discontinuities within $[ a,b] $. Assuming $F$ to be differentiable on a set $[ a,b] \backslash E$ to the derivative $f$, where $E$ is a subset of $[ a,b] $ at whose points $F$ can take values $\pm \infty $ or not be defined at all, we adopt the convention that $F$ and $f$ are equal to $0$ at all points of $E$ and show that $\mathcal {KH}\hbox {\rm -vt}\int _a^bf=F( b) -F( a) $, where $\mathcal {KH}\hbox {\rm -vt}$ denotes the total value of the {\it Kurzweil-Henstock} integral. The paper ends with a few examples that illustrate the theory.
In this paper a full totalization is presented of the Kurzweil-Henstock integral in the multidimensional space. A residual function of the total Kurzweil-Henstock primitive is defined.