Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C Programming

Name: Anonymous 2012-04-19 13:05

Hi /prague/
I'm programming in C and writing a little interactive program.
What's the best way to execute a function / piece of code depending on a string ? I could write a bunch of }else if(!strcmp(s, foo)){ but I find this hideous.
Any suggestions ?

Name: Anonymous 2012-04-19 14:33

>>5

How many strings are we talking about?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List