Deutsch English Français Italiano |
<vbqtcb$1r0i3$1@news.xmission.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder9.news.weretis.net!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail From: gazelle@shell.xmission.com (Kenny McCormack) Newsgroups: comp.lang.c Subject: Re: Command line globber/tokenizer library for C? Date: Wed, 11 Sep 2024 01:56:27 -0000 (UTC) Organization: The official candy of the new Millennium Message-ID: <vbqtcb$1r0i3$1@news.xmission.com> References: <lkbjchFebk9U1@mid.individual.net> Injection-Date: Wed, 11 Sep 2024 01:56:27 -0000 (UTC) Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4"; logging-data="1933891"; mail-complaints-to="abuse@xmission.com" X-Newsreader: trn 4.0-test77 (Sep 1, 2010) Originator: gazelle@shell.xmission.com (Kenny McCormack) Bytes: 1416 Lines: 19 In article <lkbjchFebk9U1@mid.individual.net>, Ted Nolan <tednolan> <tednolan> wrote: >I have the case where my C program is handed a string which is basically >a command line. > >Is there a common open source C library for tokenizing and globbing >this into an argc/argv as a shell would do? I've googled, but I get >too much C++ & other language stuff. > >Note that I'm not asking for getopt(), that comes afterwards, and >I'm not asking for any variable interpolation, but just that a string >like, say Have a look at wordexp(3). -- Trump has normalized hate. The media has normalized Trump.