Path: ...!weretis.net!feeder9.news.weretis.net!i2pn.org!i2pn2.org!.POSTED!not-for-mail From: fir Newsgroups: comp.lang.c Subject: how to make it work Date: Thu, 29 Aug 2024 14:25:23 +0200 Organization: i2pn2 (i2pn.org) Message-ID: <877194bd8a95b9acb03db317ee000e94cce2834d@i2pn2.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 29 Aug 2024 12:25:27 -0000 (UTC) Injection-Info: i2pn2.org; logging-data="138690"; 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 Bytes: 1865 Lines: 44 see such code long long unsigned tag ; void foo(long long unsigned tag) { if(tag=='warsaw') printf("\nwarsaw"); if(tag=='paris') printf("\nparis"); if(tag=='new york') printf("\nnew york"); if(tag=='old york') printf("\nold york"); if(tag=='very old york') printf("\nvery old york"); } int main(void) { foo('warsaw'); foo('paris'); foo('new york'); foo('old york'); foo('very old york'); return 'bye'; } and maybe guess the result (or how it should be) (later i may tell you) the problem is how to make it work i want to use that kind of 'tags' and would like to use it assuming at least 8 characters work okay i mean the code above would "catch" only on proper tag and each one would be printed one time right now it dont - is thsi a way to make it work (maybe except the last one as i understand if(tag=='old york') printf("\nold york"); if(tag=='very old york') printf("\nvery old york"); may be treated as the same (i need it to work on 32 bit old mingw/gcc) ?