LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-15-2005, 04:24 PM   #1
con
Member
 
Registered: Jul 2005
Location: Finland
Distribution: Slackware
Posts: 213

Rep: Reputation: 30
glib programming tutorial (c)


Anyone know where I could find a tutorial on how to use glib . I'd like to know more about GString and the other string stuff in that 'class'. All the info I've found by googling and searching this forum were mostly about GList and GSList.
 
Old 12-15-2005, 05:14 PM   #2
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

Rep: Reputation: 111Reputation: 111
http://www.gtk.org/faq/#AEN876
http://www.gtk.org/tutorial/c2044.html
http://le-hacker.org/papers/gobject/index.html

Last edited by Hko; 12-15-2005 at 05:15 PM.
 
Old 12-15-2005, 08:38 PM   #3
llmmix
Member
 
Registered: Jun 2005
Posts: 73

Rep: Reputation: 15
devhelp will be good reference.
http://www.imendio.com/projects/devhelp/

Code:
GString

typedef struct {
  gchar  *str;
  gsize len;    
  gsize allocated_len;
} GString;

The GString struct contains the public fields of a GString. The str field points to the character data. It may move as text is added. The len field contains the length of the string, not including the terminating nul byte.

The str field is nul-terminated and so can be used as an ordinary C string. But it may be moved when text is appended or inserted into the string.
BTW, http://www.gnomefiles.org is good for source code studying.
 
Old 12-16-2005, 12:21 AM   #4
con
Member
 
Registered: Jul 2005
Location: Finland
Distribution: Slackware
Posts: 213

Original Poster
Rep: Reputation: 30
thank you!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Programming in C Tutorial Mercurius Programming 22 05-08-2006 05:01 PM
Searching for a tutorial/book on socket programming koodoo Linux - Networking 6 06-07-2005 01:48 PM
Best python tutorial for programming games. r3dhatter Programming 9 05-17-2004 04:43 AM
looking for X programming tutorial (C or C++) qwijibow Programming 1 02-02-2004 08:33 AM
Good introductory C programming tutorial ClayOgre Programming 2 01-28-2003 11:02 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration