We use some essential cookies to make our website work.

We use optional cookies, as detailed in our cookie policy, to remember your settings and understand how you use our website.

Cover of C & GUI Programming

C & GUI Programming

or free PDF download

Freshly updated for GTK3, the 2nd edition of An Introduction to C & GUI Programming will teach you all you need to know to write simple programs in C and start creating GUIs, even if you’re an absolute beginner.

The first half of the book is an introduction to C, and covers the basics of writing simple command-line programs. The second half shows how to use the GTK user interface toolkit with C to create feature-rich GUI applications which can be run on the desktop.

  • 156 pages of essential information:
  • Create simple command-line C programs
  • Control flow with conditions and loops
  • Handle variables, strings, and files
  • Design graphical user interface applications in C
  • Handle user input with buttons and menus
  • Use advanced UI features such as data stores and dialogs

Errata:

On page 79, there is a typo in the command used to build a GTK application; single hyphens have been used where double hyphens should have been used.

The line

`gcc gtktest.c `pkg-config -cflags -libs gtk+3.0` -o gtktest`

should be

`gcc gtktest.c `pkg-config --cflags --libs gtk+-3.0` -o gtktest`

In the preceding paragraph, the pkg-config instruction has the same error; the line

`pkg-config -cflags -libs gtk+3.0`

should be

`pkg-config --cflags --libs gtk+3.0`

Print Subscriptions

12 month recurring subscription

  • 12 issues per year
  • Free Raspberry Pi Pico 2 W (or Pico 2) *
  • Up to to 23% cheaper
  • Free delivery to your door
  • Available worldwide

*Free Raspberry Pi Pico W with first subscription (renewals not included)

From £55

£10 for 3 issues

  • £10 for 3 issues paid by Direct Debit
  • Free Pico 2 W (or Pico 2)
  • Renews at £15 every 3 issues
  • Cancel at any time
  • Free delivery to your door
  • UK only
From £10

6 month recurring subscription

  • Free delivery to your door
  • Available worldwide
  • Free Pico 2 W (or Pico 2)
  • Cheaper than newsstand
  • Cancel at any time
From £30

Digital Subscriptions

App Store

  • Free to download & 30 free issues
  • Best mobile reading experience
  • Read news straight from the app
  • Buy issues or subscribe from £2.49
From £3

Google Play

  • Free to download & 30 free issues
  • Best mobile reading experience
  • Read news straight from the app
  • Buy issues or subscribe from £2.49
From £3

Free PDF Edition

  • Delivered to your inbox
  • Optimised for screens
  • Clickable web links
  • Occasional news updates
Free

Sign up to the newsletter

Get every issue delivered directly to your inbox and keep up to date with the latest news, offers, events, and more.