All standard ANSI-C conventions apply to C Vuser scripts, including control flow and syntax. You can add comments and conditional statements to the script just as you do in other C programs. You declare and define variables using ANSI C conventions.
The C interpreter that is used to run Vuser scripts accepts the standard ANSI C language. It does not support any Microsoft extensions to ANSI C.
Before you add any C functions to a Vuser script, note the following limitations:
-
A Vuser script cannot pass the address of one of its functions as a callback to a library function.
-
The stdargs, longjmp, and alloca functions are not supported in Vuser scripts.
-
Vuser scripts do not support structure or union arguments or return types. Pointers to structures are supported.
-
In Vuser scripts, string literals are read-only. Any attempt to write to a string literal generates an access violation.
-
C Functions that do not return int, must be casted. For example,
extern char * strtok();
Back to top