Shell-related Utilities

Shell-related Utilities: "g_shell_parse_argv ()

gboolean g_shell_parse_argv (const gchar *command_line,
gint *argcp,
gchar ***argvp,
GError **error);

Parses a command line into an argument vector, in much the same way the shell would, but without many of the expansions the shell would perform (variable expansion, globs, operators, filename expansion, etc. are not supported). The results are defined to be the same as those you would get from a UNIX98 /bin/sh, as long as the input contains none of the unsupported shell expansions. If the input does contain such expansions, they are passed through literally. Possible errors are those from the G_SHELL_ERROR domain. Free the returned vector with g_strfreev().

command_line : command line to parse
argcp : return location for number of args
argvp : return location for array of args
error : return location for error
Returns : TRUE on success, FALSE if error set"

Comments

搜尋

本月熱門文章

什麼是 OTA ?

新鮮人找工作:職場名詞解釋 AE FAE Pre-sales Post-sales

快速反應

3/23 草草藝術節 阮劇團 上演 < 陳文成的證明題 >

簡介C的資料型態

水電行介紹---台北市南港區研究院路二段30號的志興水電行---是水電行也是水電材料行

Agoda

熱門文章

[社會觀察] 一生順遂與命途乖舛

新鮮人找工作:職場名詞解釋 AE FAE Pre-sales Post-sales

日本旅行 去東京可以在哪邊買羽球相關用品?WEMBLEY/WINDSOR/梭家/Victoria/Alpen TOKYO/

中華民國2024 總統、副總統選舉公告發布 連署參選門檻28萬9667人 可以推薦候選人的政黨包括民進黨、國民黨、民眾黨和時力

什麼是 OTA ?

[HMD Global] Nokia 2020 新手機發布 首款 5G 手機 Nokia 8.3 預計夏季開賣 !

[FAANG面試] 如何準備Google Technical Program Manager (TPM) 面試

關於中國:202X年

水電行介紹---台北市南港區研究院路二段30號的志興水電行---是水電行也是水電材料行

[表特][Passion Sisters] 中信兄弟PS女孩 浮誇甜心 凱蒂 炸裂全場~ 小許瑋甯