- Cleaned CRLF's from the sources and related files
authoroes <oes@users.sourceforge.net>
Thu, 17 May 2001 22:52:35 +0000 (22:52 +0000)
committeroes <oes@users.sourceforge.net>
Thu, 17 May 2001 22:52:35 +0000 (22:52 +0000)
encode.c

index 42d0744..7e82acd 100644 (file)
--- a/encode.c
+++ b/encode.c
@@ -1,7 +1,7 @@
-const char encode_rcs[] = "$Id: encode.c,v 1.1 2001/05/13 21:57:06 administrator Exp $";
+const char encode_rcs[] = "$Id: encode.c,v 1.1.1.1 2001/05/15 13:58:51 oes Exp $";
 /*********************************************************************
  *
 /*********************************************************************
  *
- * File        :  $Source: /home/administrator/cvs/ijb/encode.c,v $
+ * File        :  $Source: /cvsroot/ijbswa/current/encode.c,v $
  *
  * Purpose     :  Functions to encode and decode URLs, and also to
  *                encode cookies and HTML text.
  *
  * Purpose     :  Functions to encode and decode URLs, and also to
  *                encode cookies and HTML text.
@@ -33,6 +33,9 @@ const char encode_rcs[] = "$Id: encode.c,v 1.1 2001/05/13 21:57:06 administrator
  *
  * Revisions   :
  *    $Log: encode.c,v $
  *
  * Revisions   :
  *    $Log: encode.c,v $
+ *    Revision 1.1.1.1  2001/05/15 13:58:51  oes
+ *    Initial import of version 2.9.3 source tree
+ *
  *
  *********************************************************************/
 \f
  *
  *********************************************************************/
 \f
@@ -42,7 +45,7 @@ const char encode_rcs[] = "$Id: encode.c,v 1.1 2001/05/13 21:57:06 administrator
 #include <stdio.h>
 #include <string.h>
 #include <malloc.h>
 #include <stdio.h>
 #include <string.h>
 #include <malloc.h>
-\r
+
 #include "encode.h"
 
 const char encode_h_rcs[] = ENCODE_H_VERSION;
 #include "encode.h"
 
 const char encode_h_rcs[] = ENCODE_H_VERSION;
@@ -232,7 +235,7 @@ char * cookie_encode(const char *s)
  * Function    :  url_encode
  *
  * Description :  Encodes a string so it can be used in a URL
  * Function    :  url_encode
  *
  * Description :  Encodes a string so it can be used in a URL
- *                query string.  Replaces special characters with\r
+ *                query string.  Replaces special characters with
  *                the appropriate %xx codes.
  *
  * Parameters  :
  *                the appropriate %xx codes.
  *
  * Parameters  :
@@ -243,12 +246,12 @@ char * cookie_encode(const char *s)
  *
  *********************************************************************/
 char * url_encode(const char *s)
  *
  *********************************************************************/
 char * url_encode(const char *s)
-{\r
-   /* each input char can expand to at most 3 chars */\r
+{
+   /* each input char can expand to at most 3 chars */
    char * buf = (char *) malloc((strlen(s) * 3) + 1);
    char * buf = (char *) malloc((strlen(s) * 3) + 1);
-\r
+
    if (buf)
    if (buf)
-   {\r
+   {
       char c;
       char * p = buf;
       while( (c = *s++) != '\0')
       char c;
       char * p = buf;
       while( (c = *s++) != '\0')
@@ -266,9 +269,9 @@ char * url_encode(const char *s)
       }
 
       *p = '\0';
       }
 
       *p = '\0';
-\r
+
    }
    }
-\r
+
    return(buf);
 }
 
    return(buf);
 }
 
@@ -355,9 +358,9 @@ char *url_decode(const char * s)
 {
    char *buf = malloc(strlen(s) + 1);
    char *q = buf;
 {
    char *buf = malloc(strlen(s) + 1);
    char *q = buf;
-\r
-   if (buf)\r
-   {\r
+
+   if (buf)
+   {
       while (*s)
       {
          switch (*s)
       while (*s)
       {
          switch (*s)
@@ -385,9 +388,9 @@ char *url_decode(const char * s)
                break;
          }
       }
                break;
          }
       }
-      *q = '\0';\r
+      *q = '\0';
    }
    }
-\r
+
    return(buf);
 
 }
    return(buf);
 
 }