question on g_strconcat



I just read an example in tutorial about g_strconcat. 

static void
  foo(char *string)
  {
          char *file;
          file = g_strconcat("/some/path/", string,
".txt", NULL);
          ...
          g_free(file);
  }	

But when I try to pass a character array pointer as a
parameter, I got a error message in compiling process
saying:
'incompatible type'. Why?

Yiqing Lee


__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]