Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!ub!acsu.buffalo.edu From: cloos@acsu.buffalo.edu (James H. Cloos) Newsgroups: comp.lang.c Subject: Converting between bases Message-ID: <62375@eerie.acsu.Buffalo.EDU> Date: 28 Feb 91 12:29:42 GMT Sender: news@acsu.Buffalo.EDU Distribution: usa Organization: State University of New York @ Buffalo Lines: 22 Nntp-Posting-Host: lictor.acsu.buffalo.edu Hello. I need to be able to convert arbitrarily long strings which a guaenteed to match one of the regexps below (each one gets a different function) and output the hex equivilent (again in a string) optionally cut down to a specified number of hex digits. (The least significant ones.) The latter part I can take care of, but the former is giving me trouble. [01]+ [0-7]+ [0-9]+ If someone could give me a jab into the right direction (either what to do or where to look) I'd be most grateful. Happy coding, -JimC -- James H. Cloos, Jr. Phone: +1 716 673-1250 cloos@ACSU.Buffalo.EDU Snail: PersonalZipCode: 14048-0772, USA cloos@ub.UUCP Quote: <>