I've got an array of characters which contains a string:
char buf[MAXBUFLEN];
buf[0] = 'f';
buf[1] = 'o';
buf[2] = 'o';
buf[3] = '';
I'm looking to pass this string as an argument to the gtk_text_buffer_insert
function in order to insert it into a GtkTextBuffer
. What I can't figure out is how to convert it to a const gchar *
, which is what gtk_text_buffer_insert
expects as its third argument.
Can anybody help me out?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…