Re: GLib substr function



b0unc3 wrote:
there is any implementation of a substr function in GLib ?
I mean :
string = "hello world"
g_*substr*(string,2,6)
output = llo w

probably not, maybe because is something too simple like:

g_*strndup* (string+start, end-start+1);

Valerio


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