]> mj.ucw.cz Git - libucw.git/blobdiff - lib/base224.c
If no config file is specified, pretend loading an empty configuration
[libucw.git] / lib / base224.c
index d42b34d532474d11e40d00847db80dcbceccf6b4..3d624717d0a9600b59618bd740cf3aac21a0c6cd 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *     Base 224 Encoding & Decoding
+ *     UCW Library -- Base 224 Encoding & Decoding
  *
  *     (c) 2002 Martin Mares <mj@ucw.cz>
  *
@@ -18,6 +18,9 @@
  *
  *     We transform 39 source bits to 40 destination bits, stretching the data
  *     by 1/39 = approx. 2.56%.
+ *
+ *     This software may be freely distributed and used according to the terms
+ *     of the GNU Lesser General Public License.
  */
 
 #undef LOCAL_DEBUG
@@ -56,7 +59,7 @@ encode_block(byte *w, u32 hi, u32 lo)
 }
 
 uns
-base224_encode(byte *dest, byte *src, uns len)
+base224_encode(byte *dest, const byte *src, uns len)
 {
   u32 lo=0, hi=0;                      /* 64-bit buffer accumulating input bits */
   uns i=0;                             /* How many source bits do we have buffered */
@@ -93,7 +96,7 @@ base224_encode(byte *dest, byte *src, uns len)
 }
 
 uns
-base224_decode(byte *dest, byte *src, uns len)
+base224_decode(byte *dest, const byte *src, uns len)
 {
   u32 hi=0, lo=0;                      /* 64-bit buffer accumulating output bits */
   uns i=0;                             /* How many bits do we have accumulated */