I was able to get the attachment myself. It could be your email server.
Below is the the code.
Thanks,
-Alex
================================================================

#include <sqlite3.h>

void bitwise_and(sqlite3_context* pContext, int N, sqlite3_value** ppValue)
{
  int dest_bytes = sqlite3_value_bytes(ppValue[0]);
  int mask_bytes = sqlite3_value_bytes(ppValue[1]);
  if(dest_bytes != mask_bytes)
    {
      sqlite3_result_error(pContext, "unequal blob lengths", -1);
      return;
    }
  char* dest = (char*) sqlite3_value_blob(ppValue[0]);
  char* mask = (char*) sqlite3_value_blob(ppValue[1]);
  char* result = sqlite3_malloc(dest_bytes);
  int i; for(i = 0 ; i < dest_bytes ; i++) result[i] = dest[i] & mask[i];
  sqlite3_result_blob(pContext, result, dest_bytes, SQLITE_TRANSIENT);
  sqlite3_free(result);
}


int main()
{
  sqlite3* db;
  sqlite3_open(":memory:", &db);
  sqlite3_create_function(db, "bitand", 2, SQLITE_UTF8, 0, bitwise_and, 0,
0);

  char* errmsg;
  char* zSql = "select bitand(x'01',x'0101');";
  int rc = sqlite3_exec(db, zSql, 0, 0, &errmsg);
  printf("%s\n", errmsg);

  sqlite3_stmt* pStmt;
  sqlite3_prepare(db,zSql, -1, &pStmt, 0);
  printf("%s\n", sqlite3_errmsg(db));

  sqlite3_step(pStmt);
  printf("%s\n", sqlite3_errmsg(db));

  sqlite3_finalize(pStmt);

  sqlite3_close(db);

}


On Fri, Jul 4, 2008 at 4:49 PM, Roger Binns <[EMAIL PROTECTED]> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Alex Katebi wrote:
> > How about this one?
>
> Still no attachment.  It is a mime message with two parts.  The first is
>  your message and the second is a mailing list information trailer.
>
> Roger
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
>
> iD8DBQFIboznmOOfHg372QQRAr6ZAJ9cEfod2s7rOwzg9cKXXxyJFxfymACfW6OB
> NLZdqmlmDRWb6IMXvaoOgds=
> =PaSo
> -----END PGP SIGNATURE-----
> _______________________________________________
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
>
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to