Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connectionsPath: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!i2pn.org!i2pn2.org!.POSTED!not-for-mail From: fir Newsgroups: comp.lang.c Subject: Re: macro for fir list? Date: Fri, 29 Mar 2024 09:31:16 +0100 Organization: i2pn2 (i2pn.org) Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 29 Mar 2024 08:31:21 -0000 (UTC) Injection-Info: i2pn2.org; logging-data="3587573"; mail-complaints-to="usenet@i2pn2.org"; posting-account="+ydHcGjgSeBt3Wz3WTfKefUptpAWaXduqfw5xdfsuS0"; User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:27.0) Gecko/20100101 Firefox/27.0 SeaMonkey/2.24 X-Spam-Checker-Version: SpamAssassin 4.0.0 In-Reply-To: fir wrote: > > // sickle.h > struct str_list_entry { char* str;}; > const int str_lists_max = 10; > str_list_entry* str_list[str_lists_max] = {NULL}; > int str_list_size[str_lists_max] = {0}; > str_list_entry* str_list_new(int N) { > str_list[N] = (str_list_entry*) realloc(str_list[N], > ++str_list_size[N] * sizeof(str_list_entry) ); > return &str_list[N][str_list_size[N]-1]; } > you can use the above for example to build list from commanline const int commandline_list_key = 0; void BuildListOfComandline(int argc, char* argv[]) { for(int i=0; i