home *** CD-ROM | disk | FTP | other *** search
/ Total Network Tools 2002 / NextStepPublishing-TotalNetworkTools2002-Win95.iso / Archive / Offline Browsing / HTTrack.exe / data1.cab / Sources / src / htstools.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-04-28  |  2.3 KB  |  67 lines

  1. /* ------------------------------------------------------------ */
  2. /*
  3. HTTrack Website Copier, Offline Browser for Windows and Unix
  4. Copyright (C) Xavier Roche and other contributors
  5.  
  6. This program is free software; you can redistribute it and/or
  7. modify it under the terms of the GNU General Public License
  8. as published by the Free Software Foundation; either version 2
  9. of the License, or any later version.
  10.  
  11. This program is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with this program; if not, write to the Free Software
  18. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  19.  
  20.  
  21. Important notes:
  22.  
  23. - We hereby ask people using this source NOT to use it in purpose of grabbing
  24. emails addresses, or collecting any other private information on persons.
  25. This would disgrace our work, and spoil the many hours we spent on it.
  26.  
  27.  
  28. Please visit our Website: http://www.httrack.com
  29. */
  30.  
  31.  
  32. /* ------------------------------------------------------------ */
  33. /* File: httrack.c subroutines:                                 */
  34. /*       various tools (filename analyzing ..)                  */
  35. /* Author: Xavier Roche                                         */
  36. /* ------------------------------------------------------------ */
  37.  
  38.  
  39. #ifndef HTSTOOLS_DEFH
  40. #define HTSTOOLS_DEFH 
  41.  
  42. #include "httrack.h"
  43.  
  44. int ident_url_relatif(char *lien,char* urladr,char* urlfil,char* adr,char* fil);
  45. int lienrelatif(char* s,char* link,char* curr);
  46. void long_to_83(char* n83,char* save);
  47. void longfile_to_83(char* n83,char* save);
  48. HTS_INLINE int __rech_tageq(const char* adr,const char* s);
  49. #define rech_tageq(adr,s) \
  50.   ( \
  51.     ( (*((adr)-1)=='<') || (is_space(*((adr)-1))) ) ? \
  52.     ( \
  53.       (streql(*(adr),*(s))) ?   \
  54.       (__rech_tageq((adr),(s))) \
  55.       : 0                       \
  56.     ) \
  57.     : 0\
  58.   )
  59. //HTS_INLINE int rech_tageq(const char* adr,const char* s);
  60. HTS_INLINE int rech_sampletag(const char* adr,const char* s);
  61. HTS_INLINE int check_tag(char* from,const char* tag);
  62. int verif_backblue(char* base);
  63.  
  64. int istoobig(LLint size,LLint maxhtml,LLint maxnhtml,char* type);
  65.  
  66. #endif
  67.