William "Chops" Westfield mac.com> writes: > > why would the lack of support for 'sets' make C suck as a language? > > "in" seems useful, but do people use sets other than with "in" ? > I guess in C it usually comes up because I want to do something like: > switch(c) { > case [A..Z, a..z]: ... Why would one use a systems implementation language to handle sets and expect it to do so natively ?! The original question was how to port a certain piece of Pascal to C. Several good answers were given, but Bill came closest because when one wants to use sets of characters one usually uses regular expressions, which are present in C (libraries). reg_comp and reg_exec do what one needs. Peter -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist