Forum Discussion
Altera_Forum
Honored Contributor
15 years agoI haven't done this myself, but in alt_main.c the arguments to main.c are passed.
024: /*
025: * Standard arguments for main. By default, no arguments are passed to main.
026: * However a device driver may choose to configure these arguments by calling
027: * alt_set_args(). The expectation is that this facility will only be used by
028: * the iclient/ihost utility.
029: */
030:
031: int alt_argc = 0;
032: char** alt_argv = {NULL};
033: char** alt_envp = {NULL};
...
116: main (alt_argc, alt_argv, alt_envp);
What exactly are you trying to accomplish? If you're looking for input arguments, why not keep it simple and use scanf()?