Here are some possibilities.
Use negative line numbers as special codes:
#define CMD_NEXT -1
#define CMD_PREV -2
void print(Line *head, int lineNumber) {
Type: Posts; User: oogabooga
Here are some possibilities.
Use negative line numbers as special codes:
#define CMD_NEXT -1
#define CMD_PREV -2
void print(Line *head, int lineNumber) {
They use a "variable argument list" using the macros defined in stdarg.h. That might be what you want, but you'd have to explain exactly what you're trying to accomplish to get the best advice.