home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / wget153.zip / os2 / os2.h < prev    next >
C/C++ Source or Header  |  1998-05-20  |  389b  |  16 lines

  1. void os2title(int, const char *);
  2. void os2break(int);
  3. char *replace_question(const char *);
  4. void replace_percent(char *);
  5.  
  6. /* if filename contains '?' character(s),
  7.    free it and replace it with a version that doesn't. */
  8.  
  9. #define URL_OSCOMPAT(s) {        \
  10.   if (strchr(s, '?')) {            \
  11.     char *new_s = replace_question(s);    \
  12.     free (s);                \
  13.     (s) = new_s;            \
  14.   }                    \
  15. }
  16.