ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

tscript.cpp
Go to the documentation of this file.
00001 
00002 //Telnet Win32 : an ANSI telnet client.
00003 //Copyright (C) 1998-2000 Paul Brannan
00004 //Copyright (C) 1998 I.Ioannou
00005 //Copyright (C) 1997 Brad Johnson
00006 //
00007 //This program is free software; you can redistribute it and/or
00008 //modify it under the terms of the GNU General Public License
00009 //as published by the Free Software Foundation; either version 2
00010 //of the License, or (at your option) any later version.
00011 //
00012 //This program is distributed in the hope that it will be useful,
00013 //but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 //GNU General Public License for more details.
00016 //
00017 //You should have received a copy of the GNU General Public License
00018 //along with this program; if not, write to the Free Software
00019 //Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00020 //
00021 //I.Ioannou
00022 //roryt@hol.gr
00023 //
00025 
00026 #include "precomp.h"
00027 
00028 // FIX ME!!  This code not yet functional.
00029 
00030 #define TERMINATOR '~'
00031 #define SPACE_HOLDER '_'
00032 
00033 // processScript by Bryan Montgomery
00034 // modified to handle script file by Paul Brannan
00035 BOOL TScript::processScript (char* data) {
00036 /*    char* end = strchr(script,TERMINATOR);
00037     if (0 == end) {
00038         return true;
00039     } else {
00040         char* current = new char(sizeof(char)*strlen(script));
00041         strncpy(current,script,(int)(end-script));
00042         current[(int)(end-script)]=0;
00043         char *ptr=end;
00044         if (strstr(data,current) != 0) {
00045             script = ++end;
00046             end = strchr(script,TERMINATOR);
00047             while ((ptr = strchr(ptr,SPACE_HOLDER)) != 0 && ptr < end) {
00048                 *ptr=' ';
00049             }
00050             Network.WriteString(script,(int)(end-script));
00051             Network.WriteString("\r\n",2);
00052             script = ++end;
00053         }
00054     delete current;
00055     }*/
00056     return TRUE;
00057 }
00058 
00059 void TScript::initScript (char *filename) {
00060     if(fp) fclose(fp);
00061     fp = fopen(filename, "rt");
00062 }
00063 

Generated on Sat May 26 2012 04:16:15 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.