Is this what you want? At least it works with DJGPP, I haven't tried with BC++.
slackware 10.0; kernel 2.6.7 gcc 3.4.0; glibc 2.3.2; vim editor migrating to freebsd 5.4