From Terminator@VERT/CHATFREE to All on Tue Aug 14 13:01:00 2001
ãI am having a problem with this program. Its not copying ovoer the varbalesãlike it should be.ããHere is the programãã# Put all the includes hereã!INCLUDE FILE_IO.INCã!INCLUDE ERRNO.INCã!INCLUDE USERDEFS.INCã!INCLUDE NODEDEFS.INCã!INCLUDE SBBSDEFS.INCã#ã#ã#ã#ã# Put all the Dim Statements hereãint minsec maxsec newsecãstr floc info1 fn fo tp1 ãset tp1 ""ãset fn ""ãset floãint file1ãchkfile "c:\sbbs\exec\qtv.cfg"ãif_falseãgoto nocfgãend_ifã# qtv.cfg file exist so open it.ã#ã# Read the file contents:ã#ã# 1. floc = File locationã# 2. minsec = Mimium security level to run this program.ã# 3. maxsec = Max security level to runãfopen file1 O_RDONLY "c:\sbbs\exec\qtv.cfg"ãfread_line file1 flocãfread_line file1 minsecãfread_line file1 maxsecãfread_line file1 newsecãfclose file1ãclsãpauseã# Check the users security levelãcompare _useron.level minsecãif_lessãgoto nopãend_ifãcompare _useron.level maxsecãif_greaterãgoto nopãend_ifãclsã# Test ---> Testãset fn "welcome.msg"ã#strcat fo flocãcopy fo flocãstrcat fo fnãprint foãchkfile foãif_falseãgoto nowelcãend_ifãcall pauseãcrlfãgoto endã#ã#-------------------------------------------------------------------ã# End of the programããIts the part with the strcat its not copying the varables like it should be.ãããã---ã þ Synchronet þ Synchronet -> Chatfree BBS bbs.chatfree.orgã
From Digital Man@VERT to Terminator on Tue Aug 14 16:21:05 2001
RE: Another problemãBY: Terminator to All on Tue Aug 14 2001 08:01 pmãã > Its the part with the strcat its not copying the varables like it should be.ããstrcat is not used to "copy" a variable - use copy instead. strcat is used toãconcatenate (append) a string onto another string variable.ãã-Robã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã