home *** CD-ROM | disk | FTP | other *** search
- Path: mn5.swip.net!usenet
- From: roland.bengtsson@mbox3.swipnet.se (Roland Bengtsson)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Function like UPPER but ANY in C ?
- Date: 14 Jan 1996 20:30:32 GMT
- Organization: -
- Message-ID: <1232.6587T1210T1084@mbox3.swipnet.se>
- References: <68771033@0humpty.tomate.tng.oche.de>
- NNTP-Posting-Host: dialup100-143.swipnet.se
- X-Newsreader: THOR 2.22 (Amiga;TCP/IP) *UNREGISTERED*
-
-
- >: Hello,
-
- >:I am not capable of coding in any other than Arexx, but have come into the
- >:need of modifiyng a GoldED Scanner. I have noticed, that the Guides Scanner
- >:does not work correct with guides, which have their keywords in lower case.
- >:No I need a function (or whatever) that does an ANY instead of UPPER.
-
- I don't know what you mean with ANY but if you want to convert a character to
- uppercase you can clear the fifth bit like this:
-
- #define UPPER(a) (a&(~32))
-
- /* in use */
-
- int i
- char str[10] = "Example";
-
- for(i=0;str[i];i++)
- str[i] = UPPER(str[i]);
- --
- \|/
- Thor 2.22 @ @
- +--------------------------oOO-(_)-OOo----------+
- |Amigaowner | |
- |since 1988 | |
- | _ |Fidonet> 2:203/802.6 |
- | _ // | |
- | \X/ |Falkenberg, Westcoast of Sweden |
- |A3000/10MB | |
- |280HD/28.8 |Please write where YOU live! |
- |GVP Spectrum| |
- +------------+----------------------------------+
- AMIGA - Multimedia, Preemptive Multitasking
- Plug'n'Play since 1985.
- PGP-key Available
-
-