[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [BusyBox] [PATCH] uuencode and binary data
From:       Stewart Brodie <stewart () metahusky ! net>
Date:       2004-01-26 9:42:50
Message-ID: gemini.hs3cbe000636m0084.stewart () metahusky ! net
[Download RAW message or body]

Pascal Brisset <pascal.brisset@wanadoo.fr> wrote:

> static void uuencode (const unsigned char *s, const char *store, const int
length, const char *tbl)
>  {
>         int i;
>         unsigned char *p = (unsigned char *)store;
>  
>         /* Transform the 3x8 bits to 4x6 bits, as required by base64.  */
>         for (i = 0; i < length; i += 3) {
>                 *p++ = tbl[s[0] >> 2];

Why is the 'store' parameter declared as pointer to const char if you are
then casting away the const and writing through the pointer?


-- 
Stewart Brodie


_______________________________________________
busybox mailing list
busybox@mail.busybox.net
http://codepoet.org/mailman/listinfo/busybox


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic