| C R T _ C R E A T E A R G V ( )
| | | | | SOURCE: qdev_autodocs.txt 1.163 (12/09/2014) English AMIGA - CRT_#?
----------------------------------------------------------------------------
NAME
crt_createargv() - Creates array of command line args.
SYNOPSIS
res = crt_createargv(cr, argc, argv);
LONG crt_createargv(struct qcrtregs *, int *, char ***);
FUNCTION
This func. allows to parse the command line of current
process and form an array of arguments. Result is pretty
much like with standard C lib.
INPUTS
cr - Special startup structure that contains saved/
predefined CPU registers.
argc - Pointer to argument count variable (&argc).
argv - Pointer to argument array symbol (&argv).
RETURNS
Returns alloc address (to be treated like boolean) upon
success or NULL on failure.
BASES
[SysBase]
NOTES
Use handy QDEV_QCRT_ARGV() macro for quick setup. There
is no need to make a pointer from argc and argv.
Current implementation distinguishes escaped quotes in
three syntaxes. Amiga, where quotes are preceeded with
an asterisk (*), normal synatx backslash (\) and older
syntax single quote ('). No other chars are unescaped!
SEE ALSO
crt_exitmethod(), crt_newinstance(),
crt_freeinstance(), crt_destroyargv()
EXAMPLE
None.
BUGS
None known.
----------------------------------------------------------------------------
| |
| |