Category : Files from Magazines
Archive   : VOL10N08.ZIP
Filename : STRREV.C
STRREV.BIN source, compile/link with:
TCC -mc -c strrev : memory model MUST BE compact,
TLINK /i strrev,,,D:\TC\LIB\CC : data is far, use dBIV's stack
: assuming CC.LIB is in D:\TC\LIB\
EXE2BIN strrev : creates STRREV.BIN
DEL strrev.obj
DEL strrev.exe
to use from dBASE:
.LOAD strrev
.m="whatever"
.CALL strrev WITH m
* m will be reversed
*/
#include
#include
void far main(void)
{
char *param; /* compact model forces "far" */
if (_DS == 0) /* if no parameters passed */
return; /* return */
param = MK_FP(_DS,_BX); /* address the passed parameter */
strrev(param); /* call library routine */
return;
}
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/