Re: signedness of wireless keys.
- From: Ray Strode <halfline gmail com>
- To: Robert Love <rml novell com>
- Cc: NetworkManager-list gnome org
- Subject: Re: signedness of wireless keys.
- Date: Mon, 12 Dec 2005 18:01:42 -0500
Hi,
> You can see all of the mismatches if you turn on the appropriate compile
> flags.
>
> Signed or unsigned?
In the normal case you shouldn't care at all--just use the platform
default (i.e., gchar *). The only time it matters, i think, is if
you are looking at individual characters. If it's utf-8, then you
store the invidual character in a gunichar (which is 32-bit unsigned
int), by using the g_utf8_get_char api. If it's ascii, then you store
the individual character in a guchar by casting.
I believe, the only time you specifically need unsigned char is when
you are comparing characters (e.g., using stuff from ctype.h, or
comparing characters with inequalities)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]