/////////////////////////////////////////////////////////////////////////////// // Filename: $RCSfile: title2data.cpp,v $ // Purpose: Externl program example. // Language: Java // Compiler: GCC // Authors: Joerg K. Wegner // Version: $Revision: 1.1.1.1 $ // $Date: 2004/12/06 15:33:04 $ // $Author: wegner $ // // Copyright (c) Dept. Computer Architecture, University of Tuebingen, Germany // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation version 2 of the License. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. /////////////////////////////////////////////////////////////////////////////// #include #include #include using namespace std; int main(int argc,char **argv) { char *buffer = new char[10000]; char *title = new char[1000]; int i,n; char ch; int line=1; int end; char *attribute = "MOL_TITLE"; if(argc>1)attribute=argv[1]; cout<<"CPP: start"< <%s>\n\r",attribute); printf( "%s\n\r", title ); printf( "\n\r$$$$" ); //cout << "fini"<