Re: glib strlen ?
- From: Olivier <olivier lx student wau nl>
- To: gtk-app-devel-list gnome org
- Subject: Re: glib strlen ?
- Date: Sat, 29 Mar 2003 01:58:17 +0100
On Tue, 25 Mar 2003 15:29:56 +0700
mige <mige_harimurti yahoo com> wrote:
How can I get the lenght of the string ? Or at least I need to test the
string is empty or not.
if that string is a gchar * use this:
gchar *str;
if (str && str[0] != '\0') {
/* the string is not empty */
}
regards,
Olivier
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]