The Linux Pages

Day: 28 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


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