[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Shouldn't "char*" be "unsigned char*"?
- From: Matthias Kluwe <mkluwe@...>
- Date: Wed, 25 May 2011 16:21:18 +0200
2011/5/24 Dirk Laurie <email@example.com>:
> Sorry for betraying my newbie-ness, this question was probably asked
> fifteen years ago.
> In the Lua API, Lua strings are mapped to C "char*". Is this just a
> historical accident or a closely reasoned decision, such as that the
> convenience of the test "if (c<0)" to detect non-ASCII [...]
Don't assume that char is signed... That is platform and compiler specific.