/*************************************************************************** * * * Copyright (C) 2005 Piotr Wawrzyniak (piti@piti.vsv.pl * * 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; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #include"operacje_na_tex.h" #include"czyt_zapis.h" #include"prz_string.h" int przeszukaj_linie_tex(char*); int przed_etykieta_po(char,char*,char*,char*,char); int podaj_etykiete_liczbe(char *, char *, int *);//linia etykieta kolejnosc int zwroc_numer_etykiety(kol_etykiet*,char*,kol_etykiet**); extern int language; extern char polecenie[DL_WIERSZA]; extern int test; int operacje_na_tex(char *nazwa_pliku, kol_etykiet*wierzcholek) { char drugi_plik_tex[DL_WIERSZA]; drugi_plik_tex[DL_WIERSZA-1]=drugi_plik_tex[0]=drugi_plik_tex[1]='\0'; strcat(drugi_plik_tex,nazwa_pliku); strcat(drugi_plik_tex,".auto.tex"); ofstream plik_tex_wy(drugi_plik_tex); if(!plik_tex_wy) { if(language==0) { cout<<"Nie mogłem otworzyć pliku wyjściowego"<kolejny_numer_string<