The Linux Pages

Month: February 2013

How to map enum to strings in C

28 February 201319 July 2018 ench0 5 Comments C programming, Programming

How can we map the enum values to strings in the C programing language? Often times you need to display a C enum as a string, most often when debugging or handling error conditions. Typical techiques involve usually: a) defining an array of strings (the strings being the enum names of course, and the string […]

Continue reading


Makefile variables ($@, $< ...)

14 February 2013 ench0 3 Comments Programming

Ever wondered what the funny-looking vars in the GNU Makefiles are? These two are the most common ones:  $@ and @< there are some other are special vars as well. Here’s what these two mean, and you can look up the rest on the GNU Makefile “Automatic Variables” help page: $@     -is the name of the target currently […]

Continue reading


Emacs wrap lines (disable/enable with toggle-truncate-lines)

8 February 2013 ench0 Leave a comment Emacs

Wrapping lines in emacs can be a real pain (fe.g. or programmers) or exactly what you want, for example if you’re writing the text of an email. At any rate it’s nice to know how to turn line wrap on and off in emacs – if anything every now and then you’d accidentally press the […]

Continue reading


Tags

bash boot compile C programming drupal drush emacs etc ethernet Fedora git grep how to html httpd init kernel linux linux partition login mariadb mount mysql networking oracle package managers password phpMyAdmin programming rpm shell sql ssh vbox version control system virtual box vm web server win32 wordpress www xargs xfce xwin yum

Categories

  • Android Development
  • Bash
  • C programming
  • dpkg/apt-get
  • drupal
  • Emacs
  • Git
  • Java
  • Linux administration
  • Linux device drivers
  • Linux Gaming
  • Linux kernel
  • Linux Networking
  • Linux on Windows
  • Linux printing
  • Linux sound and ALSA
  • Package Managers
  • Programming
  • RPM
  • Shell and environment
  • Tips and tricks
  • Uncategorized
  • VirtualBox
  • Virtualization
  • web development
  • wine
  • WMaker
  • Wordpress Tips
  • X Window System
  • XFCE
dazzling Theme by Colorlib Powered by WordPress