In C what is the fastest method of jumping to a function from a user specified input string

Viewed 139

I am taking a user input from a serial interface where they can write commands with arguments. I would like to know what is the fastest method for jumping to a function from this input.

I have seen this done but cannot remember how it was implemented. I believe it used a table of strings each with an associated function pointer. Instead of using strcmp for each item in the table for matching strings, is there a way I can "drop in" to an element in that table from this string input?

3 Answers
Related