title: How to get a num lock state using C/C++?
body: <p>I have read Gdk forum link which says that getting num lock state api is implemented since version 3.0. But I am using version 2.4 and I cannot update to version 3.0 as I need to support lower Linux version. Here is the discussion link:</p>
  
  <p><a href="http://mail.gnome.org/archives/commits-list/2010-July/msg00259.html" rel="nofollow">http://mail.gnome.org/archives/commits-list/2010-July/msg00259.html</a></p>
  
  <p>SO, is there any other way to get the num lock state using internal Linux command?</p>
  
  <p>Regards,
  iSight</p>