0
我一直在線上關於C編程的教程,並且代碼使用的是Apache APR庫。 它使用apr_proc_t結構來執行外部應用程序。 我很困惑這個功能,可能有人解釋這是什麼功能是指:Apache APR函數apr_procattr_cmdtype_set混淆
apr_status_t apr_procattr_cmdtype_set ( apr_procattr_t * attr,
apr_cmdtype_e cmd
)
Set what type of command the child process will call.
Parameters:
attr The procattr we care about.
cmd The type of command. One of:
APR_SHELLCMD -- Anything that the shell can handle
APR_PROGRAM -- Executable program (default)
APR_PROGRAM_ENV -- Executable program, copy environment
APR_PROGRAM_PATH -- Executable program on PATH, copy env
謝謝你的回答。 – ArmenB 2012-08-01 07:08:47