SynopsisCrack the arguments given to an JavaScript script procedure. Prototype#include "ej.h" int ejArgs(int argc, char_t **argv, char_t *fmt, ...); Parameters
DescriptionThe ejArgv procedure is used by JavaScript procedures to crack their ASP scripting arguments. It parses the argvparameter and stores the arguments in individual variables passed to ejArgs. The fmt parameter provides a sprintf style argument specification. Only %s and %d specifiers are supported. Return ValueReturns the number of arguments found in args . Exampleif (ejArgs(argc, argv, "%s %d", &name, &age) < 2) { websError(wp, 400, "Insufficient args\n"); return -1; } See Also |